[openeuler:OLK-6.6 3508/3508] drivers/ub/urma/uburma/uburma_event.c:349:50: sparse: sparse: incorrect type in argument 2 (different address spaces)
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 5930fa3740c518a9f6ba688fd0c1873d6f3adbce commit: e8c3802f69b01ec0b063c1889c9232ca59ff339a [3508/3508] uburma: implement comprehensive jetty linking and transport features config: arm64-randconfig-r112-20251210 (https://download.01.org/0day-ci/archive/20251211/202512111728.ksAjCqeX-lkp@i...) compiler: aarch64-linux-gcc (GCC) 13.4.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251211/202512111728.ksAjCqeX-lkp@i...) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202512111728.ksAjCqeX-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) drivers/ub/urma/uburma/uburma_event.c:112:20: sparse: sparse: incompatible types in comparison expression (different address spaces): drivers/ub/urma/uburma/uburma_event.c:112:20: sparse: void [noderef] __rcu * drivers/ub/urma/uburma/uburma_event.c:112:20: sparse: void *
drivers/ub/urma/uburma/uburma_event.c:349:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got struct uburma_cmd_hdr * @@ drivers/ub/urma/uburma/uburma_event.c:349:50: sparse: expected void const [noderef] __user *from drivers/ub/urma/uburma/uburma_event.c:349:50: sparse: got struct uburma_cmd_hdr * drivers/ub/urma/uburma/uburma_event.c:477:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got struct uburma_cmd_hdr * @@ drivers/ub/urma/uburma/uburma_event.c:477:50: sparse: expected void const [noderef] __user *from drivers/ub/urma/uburma/uburma_event.c:477:50: sparse: got struct uburma_cmd_hdr * drivers/ub/urma/uburma/uburma_event.c:751:50: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] __user *from @@ got struct uburma_cmd_hdr * @@ drivers/ub/urma/uburma/uburma_event.c:751:50: sparse: expected void const [noderef] __user *from drivers/ub/urma/uburma/uburma_event.c:751:50: sparse: got struct uburma_cmd_hdr *
vim +349 drivers/ub/urma/uburma/uburma_event.c 338 339 static long uburma_jfce_ioctl(struct file *filp, unsigned int cmd, 340 unsigned long arg) 341 { 342 struct uburma_cmd_hdr hdr; 343 struct uburma_uobj *uobj = filp->private_data; 344 struct uburma_jfce_uobj *jfce = 345 container_of(uobj, struct uburma_jfce_uobj, uobj); 346 int ret; 347 348 if (cmd == UBURMA_CMD_WAIT_JFC) {
349 ret = (int)copy_from_user(&hdr, (struct uburma_cmd_hdr *)arg, 350 sizeof(struct uburma_cmd_hdr)); 351 if ((ret != 0) || (hdr.args_len > UBURMA_CMD_MAX_ARGS_SIZE) || 352 (hdr.args_len == 0 || hdr.args_addr == 0 || 353 hdr.command >= UBURMA_EVENT_CMD_MAX)) { 354 ret = -EINVAL; 355 } else { 356 ret = uburma_jfce_wait(jfce, filp, &hdr); 357 } 358 } else { 359 ret = -ENOIOCTLCMD; 360 } 361 return (long)ret; 362 } 363
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot