From: Oleg Drokin Date: Sun, 3 Jan 2016 17:05:39 +0000 (-0500) Subject: staging/lustre: Update user pointers in struct obd_ioctl_data X-Git-Tag: next-20160210~18^2~514 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=922cb32ca374fb729194d087c8f9aa17205d586e;p=karo-tx-linux.git staging/lustre: Update user pointers in struct obd_ioctl_data Make them void __user * instead of char * (or char __user *), void * removes the necessity of explicit casts to proper type where people also need to remember __user qualifiers, so I think it works better here. Signed-off-by: Oleg Drokin Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/include/lustre_lib.h b/drivers/staging/lustre/lustre/include/lustre_lib.h index 7daf9543f32c..3d75a8292d5f 100644 --- a/drivers/staging/lustre/lustre/include/lustre_lib.h +++ b/drivers/staging/lustre/lustre/include/lustre_lib.h @@ -153,9 +153,9 @@ struct obd_ioctl_data { /* buffers the kernel will treat as user pointers */ __u32 ioc_plen1; - char *ioc_pbuf1; + void __user *ioc_pbuf1; __u32 ioc_plen2; - char *ioc_pbuf2; + void __user *ioc_pbuf2; /* inline buffers for various arguments */ __u32 ioc_inllen1;