summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorL. Alberto Giménez <agimenez@sysvalve.es>2014-07-24 22:50:25 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-27 18:24:37 (GMT)
commit8fa6cfc73283b687067687955f459720054bbe90 (patch)
treecd412806bebb17bdf0dddf4e4cf6caaa6d144d8a
parent70ae543b3260a1cb53b30320d650effa575fa174 (diff)
downloadlinux-8fa6cfc73283b687067687955f459720054bbe90.tar.xz
staging/lustre: Fix sparse error (signature mismatch)
lprocfs_wr_atomic is defined in drivers/staging/lustre/lustre/obdclass/lprocfs_status.c with its second argument with the __user attribute: int lprocfs_wr_atomic(struct file *file, const char __user *buffer, unsigned long count, void *data) but its declaration in drivers/staging/lustre/lustre/include/lprocfs_status.h does not include the attribute. Make declaration and definition match. Signed-off-by: L. Alberto Giménez <agimenez@sysvalve.es> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/lustre/lustre/include/lprocfs_status.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/include/lprocfs_status.h b/drivers/staging/lustre/lustre/include/lprocfs_status.h
index 1f235f4..16b3d68 100644
--- a/drivers/staging/lustre/lustre/include/lprocfs_status.h
+++ b/drivers/staging/lustre/lustre/include/lprocfs_status.h
@@ -604,7 +604,7 @@ extern int lprocfs_obd_seq_create(struct obd_device *dev, const char *name,
extern int lprocfs_rd_u64(struct seq_file *m, void *data);
extern int lprocfs_rd_atomic(struct seq_file *m, void *data);
-extern int lprocfs_wr_atomic(struct file *file, const char *buffer,
+extern int lprocfs_wr_atomic(struct file *file, const char __user *buffer,
unsigned long count, void *data);
extern int lprocfs_rd_uint(struct seq_file *m, void *data);
extern int lprocfs_wr_uint(struct file *file, const char *buffer,