public inbox for [email protected]
 help / color / mirror / Atom feed
* [PATCH] io_uring/rw: use NULL for rw->free_iovec assigment
@ 2024-12-17 19:45 Jens Axboe
  2024-12-18 15:08 ` Anuj gupta
  0 siblings, 1 reply; 2+ messages in thread
From: Jens Axboe @ 2024-12-17 19:45 UTC (permalink / raw)
  To: io-uring; +Cc: Gabriel Krisman Bertazi

It's a pointer, don't use 0 for that. sparse throws a warning for that,
as the kernel test robot noticed.

Fixes: 8cf0c459993e ("io_uring/rw: Allocate async data through helper")
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Signed-off-by: Jens Axboe <[email protected]>

---

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;
 }
 
-- 
Jens Axboe


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-12-18 15:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-17 19:45 [PATCH] io_uring/rw: use NULL for rw->free_iovec assigment Jens Axboe
2024-12-18 15:08 ` Anuj gupta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox