mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 13:27:25 -04:00
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: Oleg Drokin <green@linuxhacker.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0f881d7b26
commit
11be8f6cdc
@@ -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,
|
||||
struct lustre_kernelcomm *lk, void *uarg)
|
||||
struct lustre_kernelcomm *lk,
|
||||
void __user *uarg)
|
||||
{
|
||||
int rc = 0;
|
||||
__u32 i;
|
||||
@@ -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,
|
||||
struct lustre_kernelcomm *lk, void *uarg)
|
||||
struct lustre_kernelcomm *lk, void __user *uarg)
|
||||
{
|
||||
struct file *filp;
|
||||
__u32 i, j;
|
||||
|
||||
Reference in New Issue
Block a user