staging: lustre: Fix function declaration/definition mismatch
PATCH 1/1 staging: lustre: Fix function declaration/definition mismatch
From: Sandeep Jain <[email protected]>
Fixes following Sparse errors.
lprocfs_status.c:1568:5: error: symbol 'lprocfs_wr_root_squash' redeclared with different type... lprocfs_status.c:1632:5: error: symbol 'lprocfs_wr_nosquash_nids' redeclared with different type...
Signed-off-by Sandeep Jain <[email protected]>
--- drivers/staging/lustre/lustre/include/lprocfs_status.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/lustre/lustre/include/lprocfs_status.h +2 -2
@@ -701,9 +701,9 @@ static struct lustre_attr lustre_attr_##name = __ATTR(name, mode, show, store)extern const struct sysfs_ops lustre_sysfs_ops;struct root_squash_info ; -int lprocfs_wr_root_squash (const char *buffer,unsigned long count, +int lprocfs_wr_root_squash (const char __user *buffer,unsigned long count,struct root_squash_info *squash,char *name); -int lprocfs_wr_nosquash_nids (const char *buffer,unsigned long count, +int lprocfs_wr_nosquash_nids (const char __user *buffer,unsigned long count,struct root_squash_info *squash,char *name);/* all quota proc functions */
Signature · 1 line
2.7.4
Quoted 9 lines · On Dec 4, 2016, at 10:06 PM, <[email protected]>…
From: Sandeep Jain <[email protected]>
Fixes following Sparse errors.
lprocfs_status.c:1568:5: error: symbol 'lprocfs_wr_root_squash' redeclared with different type... lprocfs_status.c:1632:5: error: symbol 'lprocfs_wr_nosquash_nids' redeclared with different type...Signed-off-by Sandeep Jain <[email protected]>
Acked-by Oleg Drokin <[email protected]>
Quoted 22 lines
---
drivers/staging/lustre/lustre/include/lprocfs_status.h| 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)drivers/staging/lustre/lustre/include/lprocfs_status.h +2
-2@@ -701,9 +701,9 @@ static struct lustre_attr lustre_attr_##name = __ATTR(name, mode, show, store)extern const struct sysfs_ops lustre_sysfs_ops;struct root_squash_info ; -int lprocfs_wr_root_squash (const char *buffer,unsigned long count, +int lprocfs_wr_root_squash (const char __user *buffer,unsigned long count,struct root_squash_info *squash,char *name); -int lprocfs_wr_nosquash_nids (const char *buffer,unsigned long count, +int lprocfs_wr_nosquash_nids (const char __user *buffer,unsigned long count,struct root_squash_info *squash,char *name);/* all quota proc functions */ Signature · 1 line
2.7.4