X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ffld%2Flproc_fld.c;h=8dd6fe4e51fe46d3fb8ad73b53469ff7150af607;hb=73c12f4d6c98476c0dc5de77a646a157db727eef;hp=873fa23c7064b28764a6111ae420b04609aec987;hpb=df497dc560062a0a0c7178498cba8853843d39f1;p=fs%2Flustre-release.git diff --git a/lustre/fld/lproc_fld.c b/lustre/fld/lproc_fld.c index 873fa23..8dd6fe4 100644 --- a/lustre/fld/lproc_fld.c +++ b/lustre/fld/lproc_fld.c @@ -43,13 +43,8 @@ #define DEBUG_SUBSYSTEM S_FLD -#ifdef __KERNEL__ -# include -# include -#else /* __KERNEL__ */ -# include -#endif - +#include +#include #include #include #include @@ -90,7 +85,7 @@ fld_proc_hash_seq_show(struct seq_file *m, void *unused) } static ssize_t -fld_proc_hash_seq_write(struct file *file, const char *buffer, +fld_proc_hash_seq_write(struct file *file, const char __user *buffer, size_t count, loff_t *off) { struct lu_client_fld *fld = ((struct seq_file *)file->private_data)->private; @@ -123,7 +118,7 @@ fld_proc_hash_seq_write(struct file *file, const char *buffer, } static ssize_t -lprocfs_cache_flush_seq_write(struct file *file, const char *buffer, +lprocfs_cache_flush_seq_write(struct file *file, const char __user *buffer, size_t count, loff_t *pos) { struct lu_client_fld *fld = ((struct seq_file *)file->private_data)->private;