[PATCH 22/29] staging/lustre: Properly mark lmv_fid2path uarg argment as __user
green at linuxhacker.ru
green at linuxhacker.ru
Sun Jan 3 17:05:53 UTC 2016
From: Oleg Drokin <green at linuxhacker.ru>
This makes sparse happy too.
Signed-off-by: Oleg Drokin <green at linuxhacker.ru>
---
drivers/staging/lustre/lustre/lmv/lmv_obd.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/lustre/lustre/lmv/lmv_obd.c b/drivers/staging/lustre/lustre/lmv/lmv_obd.c
index 58b00cb..6889b69 100644
--- a/drivers/staging/lustre/lustre/lmv/lmv_obd.c
+++ b/drivers/staging/lustre/lustre/lmv/lmv_obd.c
@@ -662,7 +662,8 @@ out_local:
return rc;
}
-static int lmv_fid2path(struct obd_export *exp, int len, void *karg, void *uarg)
+static int lmv_fid2path(struct obd_export *exp, int len, void *karg,
+ void __user *uarg)
{
struct obd_device *obddev = class_exp2obd(exp);
struct lmv_obd *lmv = &obddev->u.lmv;
--
2.1.0
More information about the devel
mailing list