* [PATCH] fs: fix warning Using plain integer as NULL pointer
@ 2022-09-11 13:34 Jules Irenge
0 siblings, 0 replies; only message in thread
From: Jules Irenge @ 2022-09-11 13:34 UTC (permalink / raw)
To: viro; +Cc: linux-fsdevel, linux-kernel
Changed "0 to NULL" to avoid Sparse warning
fs/direct-io.c:1137:36: warning: Using plain integer as NULL
Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
---
fs/direct-io.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/direct-io.c b/fs/direct-io.c
index f669163d5860..87910761039e 100644
--- a/fs/direct-io.c
+++ b/fs/direct-io.c
@@ -1134,7 +1134,7 @@ ssize_t __blockdev_direct_IO(struct kiocb *iocb, struct inode *inode,
loff_t offset = iocb->ki_pos;
const loff_t end = offset + count;
struct dio *dio;
- struct dio_submit sdio = { 0, };
+ struct dio_submit sdio = { NULL, };
struct buffer_head map_bh = { 0, };
struct blk_plug plug;
unsigned long align = offset | iov_iter_alignment(iter);
--
2.35.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-09-11 13:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-11 13:34 [PATCH] fs: fix warning Using plain integer as NULL pointer Jules Irenge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).