From 1eb8805a01f495707f6bf16141e4e7a437be6eca Mon Sep 17 00:00:00 2001 From: frank zago Date: Fri, 29 Aug 2014 18:49:01 -0500 Subject: [PATCH] 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 --- lustre/include/lustre_ioctl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 1.8.3.1