block/ioctl.c:72:39: sparse: sparse: Using plain integer as NULL pointer
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: cca7a0aae8958c9b1cd14116cb8b2f22ace2205e commit: f6bff7827a48e59cff1ef98aae72452d65174e0c riscv: uaccess: use 'asm_goto_output' for get_user() date: 3 months ago config: riscv-randconfig-r133-20250806 (https://download.01.org/0day-ci/archive/20250806/[email protected]/config) compiler: riscv64-linux-gcc (GCC) 12.5.0 reproduce: (https://download.01.org/0day-ci/archive/20250806/[email protected]/reproduce)
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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
sparse warnings: (new ones prefixed by >>)
WARNING: invalid argument to '-march': '_zacas_zabha'
>> block/ioctl.c:72:39: sparse: sparse: Using plain integer as NULL pointer
vim +72 block/ioctl.c
^1da177e4c3f41 drivers/block/ioctl.c Linus Torvalds 2005-04-16 65
5fb889f587fa2a block/ioctl.c Arnd Bergmann 2019-11-28 66 static int blkpg_ioctl(struct block_device *bdev,
5fb889f587fa2a block/ioctl.c Arnd Bergmann 2019-11-28 67 struct blkpg_ioctl_arg __user *arg)
5fb889f587fa2a block/ioctl.c Arnd Bergmann 2019-11-28 68 {
5fb889f587fa2a block/ioctl.c Arnd Bergmann 2019-11-28 69 struct blkpg_partition __user *udata;
5fb889f587fa2a block/ioctl.c Arnd Bergmann 2019-11-28 70 int op;
5fb889f587fa2a block/ioctl.c Arnd Bergmann 2019-11-28 71
5fb889f587fa2a block/ioctl.c Arnd Bergmann 2019-11-28 @72 if (get_user(op, &arg->op) || get_user(udata, &arg->data))
5fb889f587fa2a block/ioctl.c Arnd Bergmann 2019-11-28 73 return -EFAULT;
5fb889f587fa2a block/ioctl.c Arnd Bergmann 2019-11-28 74
5fb889f587fa2a block/ioctl.c Arnd Bergmann 2019-11-28 75 return blkpg_do_ioctl(bdev, udata, op);
5fb889f587fa2a block/ioctl.c Arnd Bergmann 2019-11-28 76 }
5fb889f587fa2a block/ioctl.c Arnd Bergmann 2019-11-28 77 :::::: The code at line 72 was first introduced by commit
:::::: 5fb889f587fa2ae486e067d8a00df955ae6492b3 compat_ioctl: block: simplify compat_blkpg_ioctl()
:::::: TO: Arnd Bergmann <[email protected]>
:::::: CC: Arnd Bergmann <[email protected]>
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki