Whamcloud - gitweb
LU-5396 mdc: add sparse annotation __user wherever needed 22/11822/3
authorfrank zago <frank@zago.net>
Fri, 29 Aug 2014 23:50:31 +0000 (18:50 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 18 Sep 2014 10:25:07 +0000 (10:25 +0000)
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] <asn:1>*ids
  .../api-ni.c:1639:33:    got struct lnet_process_id_t
                             [usertype] *<noident>

There is no code change.

Change-Id: Ie3acf675d284a595d4aa871b522a0c409973da18
Signed-off-by: frank zago <fzago@cray.com>
Reviewed-on: http://review.whamcloud.com/11822
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdc/mdc_request.c

index de6ebf5..0ab1d70 100644 (file)
@@ -2283,7 +2283,7 @@ out:
 }
 
 static int mdc_iocontrol(unsigned int cmd, struct obd_export *exp, int len,
 }
 
 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;
 {
         struct obd_device *obd = exp->exp_obd;
         struct obd_ioctl_data *data = karg;