From: frank zago Date: Fri, 29 Aug 2014 23:49:01 +0000 (-0500) Subject: LU-5396 ioctl: add sparse annotation __user wherever needed X-Git-Tag: 2.6.53~3 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=1eb8805a01f495707f6bf16141e4e7a437be6eca;p=fs%2Flustre-release.git LU-5396 ioctl: add sparse annotation __user wherever needed This fixes sparse warnings such as: .../api-ni.c:1639:33: warning: incorrect type in argument 3 (different address spaces) .../api-ni.c:1639:33: expected struct lnet_process_id_t [noderef] [usertype] *ids .../api-ni.c:1639:33: got struct lnet_process_id_t [usertype] * There is no code change. Change-Id: I5dae6291e4d22353973088f440083b197010528b Signed-off-by: frank zago Reviewed-on: http://review.whamcloud.com/11820 Reviewed-by: Bob Glossman Reviewed-by: Dmitry Eremin Reviewed-by: James Simmons Reviewed-by: John L. Hammond Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lustre/include/lustre_ioctl.h b/lustre/include/lustre_ioctl.h index 737c144..5263e2d 100644 --- a/lustre/include/lustre_ioctl.h +++ b/lustre/include/lustre_ioctl.h @@ -90,9 +90,9 @@ struct obd_ioctl_data { /* buffers the kernel will treat as user pointers */ __u32 ioc_plen1; - char *ioc_pbuf1; + char __user *ioc_pbuf1; __u32 ioc_plen2; - char *ioc_pbuf2; + char __user *ioc_pbuf2; /* inline buffers for various arguments */ __u32 ioc_inllen1;