diff options
author | Oleg Drokin <green@linuxhacker.ru> | 2016-01-03 12:05:44 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-03 14:32:36 -0800 |
commit | f2938c04b8f9b0223767ade931eeb63f3d7e0e68 (patch) | |
tree | 3d655fc35fd0e137704c59e75329eb98daca1536 /drivers/staging/lustre/include | |
parent | e09bee346e3f10a3739c4c9ae4286bd09cdf2631 (diff) | |
download | op-kernel-dev-f2938c04b8f9b0223767ade931eeb63f3d7e0e68.zip op-kernel-dev-f2938c04b8f9b0223767ade931eeb63f3d7e0e68.tar.gz |
staging/lustre: Properly mark argument to p_ioctl in cfs_psdev_ops as __user
This also silents a sparse address space warning
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/include')
-rw-r--r-- | drivers/staging/lustre/include/linux/libcfs/libcfs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/include/linux/libcfs/libcfs.h b/drivers/staging/lustre/include/linux/libcfs/libcfs.h index 094eb0f..dc9b88f 100644 --- a/drivers/staging/lustre/include/linux/libcfs/libcfs.h +++ b/drivers/staging/lustre/include/linux/libcfs/libcfs.h @@ -77,7 +77,7 @@ struct cfs_psdev_ops { int (*p_close)(unsigned long, void *); int (*p_read)(struct cfs_psdev_file *, char *, unsigned long); int (*p_write)(struct cfs_psdev_file *, char *, unsigned long); - int (*p_ioctl)(struct cfs_psdev_file *, unsigned long, void *); + int (*p_ioctl)(struct cfs_psdev_file *, unsigned long, void __user *); }; /* |