From: frank zago Date: Fri, 29 Aug 2014 23:50:31 +0000 (-0500) Subject: LU-5396 mdc: add sparse annotation __user wherever needed X-Git-Tag: 2.6.53~36 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=9924ee329a87cf971ec2d32a64c65fd04bad6022;p=fs%2Flustre-release.git LU-5396 mdc: 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: Ie3acf675d284a595d4aa871b522a0c409973da18 Signed-off-by: frank zago Reviewed-on: http://review.whamcloud.com/11822 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: Bob Glossman Reviewed-by: Dmitry Eremin Reviewed-by: Oleg Drokin --- diff --git a/lustre/mdc/mdc_request.c b/lustre/mdc/mdc_request.c index de6ebf5..0ab1d70 100644 --- a/lustre/mdc/mdc_request.c +++ b/lustre/mdc/mdc_request.c @@ -2283,7 +2283,7 @@ out: } static int mdc_iocontrol(unsigned int cmd, struct obd_export *exp, int len, - void *karg, void *uarg) + void *karg, void __user *uarg) { struct obd_device *obd = exp->exp_obd; struct obd_ioctl_data *data = karg;