staging:lustre: Fix sparse warning of incorrect argument type
authorHimangi Saraogi <himangi774@gmail.com>
Thu, 6 Mar 2014 22:37:18 +0000 (04:07 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2014 01:35:27 +0000 (17:35 -0800)
This patch fixes the following sparse warning :
drivers/staging/lustre/lustre/lmv/lproc_lmv.c:99:35: warning: incorrect type in argument 2 (different address spaces)
drivers/staging/lustre/lustre/lmv/lproc_lmv.c:99:35:    expected void const [noderef] <asn:1>*from
drivers/staging/lustre/lustre/lmv/lproc_lmv.c:99:35:    got char const *buffer

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/lmv/lproc_lmv.c

index b355d01410e46a9f4aac3a891f0e2a8f6d6b0ef1..5d5c3081c4670d3ce965651f34ff00a12bc424ad 100644 (file)
@@ -87,8 +87,9 @@ static int lmv_placement_seq_show(struct seq_file *m, void *v)
 
 #define MAX_POLICY_STRING_SIZE 64
 
-static ssize_t lmv_placement_seq_write(struct file *file, const char *buffer,
-                                  size_t count, loff_t *off)
+static ssize_t lmv_placement_seq_write(struct file *file,
+                                       const char __user *buffer,
+                                       size_t count, loff_t *off)
 {
        struct obd_device *dev = ((struct seq_file *)file->private_data)->private;
        char                 dummy[MAX_POLICY_STRING_SIZE + 1];
This page took 0.029563 seconds and 5 git commands to generate.