From: kernel test robot <lkp@intel.com>
To: Jisheng Zhang <jszhang@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Palmer Dabbelt <palmer@rivosinc.com>,
Cyril Bur <cyrilbur@tenstorrent.com>,
Alexandre Ghiti <alexghiti@rivosinc.com>
Subject: block/ioctl.c:72:39: sparse: sparse: Using plain integer as NULL pointer
Date: Wed, 6 Aug 2025 23:43:58 +0800 [thread overview]
Message-ID: <202508062321.gHv4kvuY-lkp@intel.com> (raw)
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@intel.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@arndb.de>
:::::: CC: Arnd Bergmann <arnd@arndb.de>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-08-06 15:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202508062321.gHv4kvuY-lkp@intel.com \
--to=lkp@intel.com \
--cc=alexghiti@rivosinc.com \
--cc=cyrilbur@tenstorrent.com \
--cc=jszhang@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=palmer@rivosinc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®