aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/lustre
diff options
context:
space:
mode:
authorHimangi Saraogi <himangi774@gmail.com>2014-03-07 04:07:18 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-03-06 17:35:27 -0800
commitbaf8aea4e9a7f1228e4a415fe2bb1bc8ef151e8f (patch)
tree11cbd337ed8ecc69029a08b98521965d5f7636b9 /drivers/staging/lustre
parent2046a81d47bacd58287672dc6f0791ab0de2184e (diff)
staging:lustre: Fix sparse warning of incorrect argument type
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>
Diffstat (limited to 'drivers/staging/lustre')
-rw-r--r--drivers/staging/lustre/lustre/lmv/lproc_lmv.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/lustre/lustre/lmv/lproc_lmv.c b/drivers/staging/lustre/lustre/lmv/lproc_lmv.c
index b355d01410e..5d5c3081c46 100644
--- a/drivers/staging/lustre/lustre/lmv/lproc_lmv.c
+++ b/drivers/staging/lustre/lustre/lmv/lproc_lmv.c
@@ -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];