[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202508062321.gHv4kvuY-lkp@intel.com>
Date: Wed, 6 Aug 2025 23:43:58 +0800
From: kernel test robot <lkp@...el.com>
To: Jisheng Zhang <jszhang@...nel.org>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Palmer Dabbelt <palmer@...osinc.com>,
Cyril Bur <cyrilbur@...storrent.com>,
Alexandre Ghiti <alexghiti@...osinc.com>
Subject: block/ioctl.c:72:39: sparse: sparse: Using plain integer as NULL
pointer
tree: 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/202508062321.gHv4kvuY-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 12.5.0
reproduce: (https://download.01.org/0day-ci/archive/20250806/202508062321.gHv4kvuY-lkp@intel.com/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 <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202508062321.gHv4kvuY-lkp@intel.com/
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 <arnd@...db.de>
:::::: CC: Arnd Bergmann <arnd@...db.de>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists