mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
staging/lustre: Change ioctl user pointers in libcfs_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 <green@linuxhacker.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e2d52f7b3a
commit
33ab3abce7
@ -61,9 +61,9 @@ struct libcfs_ioctl_data {
|
||||
char *ioc_inlbuf2;
|
||||
|
||||
__u32 ioc_plen1; /* buffers in userspace */
|
||||
char *ioc_pbuf1;
|
||||
void __user *ioc_pbuf1;
|
||||
__u32 ioc_plen2; /* buffers in userspace */
|
||||
char *ioc_pbuf2;
|
||||
void __user *ioc_pbuf2;
|
||||
|
||||
char ioc_bulk[0];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user