diff options
author | Jens Axboe <axboe@kernel.dk> | 2024-12-17 22:43:49 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-12-27 20:09:14 +0300 |
commit | 21adbcaa8007f5e584d26bebb46ec46bfbbbd330 (patch) | |
tree | 2b84ceefd21ca0a3e5e92c8fe8c89d985164533b | |
parent | 1143be17d7acb02a7c4dba6169a33534983f4960 (diff) | |
download | linux-21adbcaa8007f5e584d26bebb46ec46bfbbbd330.tar.xz |
io_uring/rw: use NULL for rw->free_iovec assigment
It's a pointer, don't use 0 for that. sparse throws a warning for that,
as the kernel test robot noticed.
Fixes: d7f11616edf5 ("io_uring/rw: Allocate async data through helper")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202412180253.YML3qN4d-lkp@intel.com/
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | io_uring/rw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/rw.c b/io_uring/rw.c index d0ac4a51420e..75f70935ccf4 100644 --- a/io_uring/rw.c +++ b/io_uring/rw.c @@ -212,7 +212,7 @@ static void io_rw_async_data_init(void *obj) { struct io_async_rw *rw = (struct io_async_rw *)obj; - rw->free_iovec = 0; + rw->free_iovec = NULL; rw->bytes_done = 0; } |