* [PATCH] xfs; fix xfs_da_args sparse warning in xfs_readdir
@ 2014-06-06 8:18 Dave Chinner
2014-06-06 17:33 ` Brian Foster
0 siblings, 1 reply; 2+ messages in thread
From: Dave Chinner @ 2014-06-06 8:18 UTC (permalink / raw)
To: xfs
From: Dave Chinner <dchinner@redhat.com>
The kbuild test robot reported:
>> fs/xfs/xfs_dir2_readdir.c:672:41: sparse: Using plain integer as NULL pointer
Fix it.
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Dave Chinner <dchinner@redhat.com>
---
fs/xfs/xfs_dir2_readdir.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/xfs/xfs_dir2_readdir.c b/fs/xfs/xfs_dir2_readdir.c
index ca1f43c..48e99af 100644
--- a/fs/xfs/xfs_dir2_readdir.c
+++ b/fs/xfs/xfs_dir2_readdir.c
@@ -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;
--
2.0.0
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] xfs; fix xfs_da_args sparse warning in xfs_readdir
2014-06-06 8:18 [PATCH] xfs; fix xfs_da_args sparse warning in xfs_readdir Dave Chinner
@ 2014-06-06 17:33 ` Brian Foster
0 siblings, 0 replies; 2+ messages in thread
From: Brian Foster @ 2014-06-06 17:33 UTC (permalink / raw)
To: Dave Chinner; +Cc: xfs
On Fri, Jun 06, 2014 at 06:18:21PM +1000, Dave Chinner wrote:
> From: Dave Chinner <dchinner@redhat.com>
>
> The kbuild test robot reported:
>
> >> fs/xfs/xfs_dir2_readdir.c:672:41: sparse: Using plain integer as NULL pointer
>
> Fix it.
>
> Reported-by: kbuild test robot <fengguang.wu@intel.com>
> Signed-off-by: Dave Chinner <dchinner@redhat.com>
> ---
Reviewed-by: Brian Foster <bfoster@redhat.com>
> fs/xfs/xfs_dir2_readdir.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/xfs/xfs_dir2_readdir.c b/fs/xfs/xfs_dir2_readdir.c
> index ca1f43c..48e99af 100644
> --- a/fs/xfs/xfs_dir2_readdir.c
> +++ b/fs/xfs/xfs_dir2_readdir.c
> @@ -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;
> --
> 2.0.0
>
> _______________________________________________
> xfs mailing list
> xfs@oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/xfs
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-06 17:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-06 8:18 [PATCH] xfs; fix xfs_da_args sparse warning in xfs_readdir Dave Chinner
2014-06-06 17:33 ` Brian Foster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox