Skip to contentSkip to conversation

io_uring/rw.c:215:26: sparse: sparse: Using plain integer as NULL pointer

PATCH kernel test robot 1 participant 1 message Dec 17, 2024

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-6.14/io_uring
head:   7b7bf14f00521ce9adcc7df4df66bc6d4f31a054
commit: 8cf0c459993ee2911f4f01fba21b1987b102c887 [40/43] io_uring/rw: Allocate async data through helper
config: mips-randconfig-r131-20241217 (https://download.01.org/0day-ci/archive/20241218/[email protected]/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce: (https://download.01.org/0day-ci/archive/20241218/[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 >>)

>> io_uring/rw.c:215:26: sparse: sparse: Using plain integer as NULL pointer

io_uring/rw.c: note: in included file (through include/linux/thread_info.h, include/asm-generic/preempt.h, arch/mips/include/generated/asm/preempt.h, ...):
arch/mips/include/asm/thread_info.h:69:16: sparse: sparse: self-comparison always evaluates to false

vim +215 io_uring/rw.c

210
211 static void io_rw_async_data_init(void *obj)
212 {
213 struct io_async_rw *rw = (struct io_async_rw *)obj;
214

 > 215		rw->free_iovec = 0;

216 rw->bytes_done = 0;
217 }
218

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