Commit 11be8f6c authored by Oleg Drokin's avatar Oleg Drokin Committed by Greg Kroah-Hartman

staging/lustre: Mark lmv_hsm_ct_register/unregister uarg as __user

Since it is a userspace pointer, this makes things neater and
sparse happier.
Signed-off-by: default avatarOleg Drokin <green@linuxhacker.ru>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0f881d7b
...@@ -794,7 +794,8 @@ static void lmv_hsm_req_build(struct lmv_obd *lmv, ...@@ -794,7 +794,8 @@ static void lmv_hsm_req_build(struct lmv_obd *lmv,
} }
static int lmv_hsm_ct_unregister(struct lmv_obd *lmv, unsigned int cmd, int len, static int lmv_hsm_ct_unregister(struct lmv_obd *lmv, unsigned int cmd, int len,
struct lustre_kernelcomm *lk, void *uarg) struct lustre_kernelcomm *lk,
void __user *uarg)
{ {
int rc = 0; int rc = 0;
__u32 i; __u32 i;
...@@ -816,7 +817,7 @@ static int lmv_hsm_ct_unregister(struct lmv_obd *lmv, unsigned int cmd, int len, ...@@ -816,7 +817,7 @@ static int lmv_hsm_ct_unregister(struct lmv_obd *lmv, unsigned int cmd, int len,
} }
static int lmv_hsm_ct_register(struct lmv_obd *lmv, unsigned int cmd, int len, static int lmv_hsm_ct_register(struct lmv_obd *lmv, unsigned int cmd, int len,
struct lustre_kernelcomm *lk, void *uarg) struct lustre_kernelcomm *lk, void __user *uarg)
{ {
struct file *filp; struct file *filp;
__u32 i, j; __u32 i, j;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment