Skip to contentSkip to conversation

xfs; fix xfs_da_args sparse warning in xfs_readdir

PATCH In review Dave Chinner 2 participants 2 messages Jun 6, 2014 XFS filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfs; fix xfs_da_args sparse warning in xfs_readdir

From: Dave Chinner <[email protected]>

The kbuild test robot reported:

Quoted 1 line
Quoted 1 line

fs/xfs/xfs_dir2_readdir.c:672:41: sparse: Using plain integer as NULL pointer

Fix it.

---
 fs/xfs/xfs_dir2_readdir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/xfs/xfs_dir2_readdir.c +1 -1
index ca1f43c..48e99af 100644
@@ -669,7 +669,7 @@ xfs_readdir(
 	struct dir_context	*ctx,
 	size_t			bufsize)
 {
-	struct xfs_da_args	args = {0};
+	struct xfs_da_args	args = { NULL };
 	int			rval;
 	int			v;
 	uint			lock_mode;
Signature · 6 lines
2.0.0

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Dave Chinner

From: Dave Chinner <[email protected]>

The kbuild test robot reported:

Quoted 1 line
Quoted 1 line

fs/xfs/xfs_dir2_readdir.c:672:41: sparse: Using plain integer as NULL pointer

Fix it.

---

Quoted 23 lines
 fs/xfs/xfs_dir2_readdir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/xfs/xfs_dir2_readdir.c +1 -1
index ca1f43c..48e99af 100644
@@ -669,7 +669,7 @@ xfs_readdir(
 	struct dir_context	*ctx,
 	size_t			bufsize)
 {
-	struct xfs_da_args	args = {0};
+	struct xfs_da_args	args = { NULL };
 	int			rval;
 	int			v;
 	uint			lock_mode;
Signature · 6 lines
2.0.0

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs