io_uring/register.c:553:1: sparse: sparse: Using plain integer as NULL pointer

From: kernel test robot
Date: Thu Nov 21 2024 - 00:29:11 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 43fb83c17ba2d63dfb798f0be7453ed55ca3f9c2
commit: c43203154d8ac579537aa0c7802b77d463b1f53a io_uring/register: move io_uring_register(2) related code to register.c
date: 11 months ago
config: s390-randconfig-r133-20241121 (https://download.01.org/0day-ci/archive/20241121/202411211339.6Gskqqs6-lkp@xxxxxxxxx/config)
compiler: s390-linux-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20241121/202411211339.6Gskqqs6-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411211339.6Gskqqs6-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
io_uring/register.c: note: in included file:
include/linux/io_uring_types.h:341:48: sparse: sparse: array of flexible structures
io_uring/register.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h, include/linux/xarray.h, ...):
include/linux/page-flags.h:242:46: sparse: sparse: self-comparison always evaluates to false
>> io_uring/register.c:553:1: sparse: sparse: Using plain integer as NULL pointer
>> io_uring/register.c:553:1: sparse: sparse: Using plain integer as NULL pointer

vim +553 io_uring/register.c

552
> 553 SYSCALL_DEFINE4(io_uring_register, unsigned int, fd, unsigned int, opcode,

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki