xfs
[Top] [All Lists]

Re: [PATCH] xfs; fix xfs_da_args sparse warning in xfs_readdir

To: Dave Chinner <david@xxxxxxxxxxxxx>
Subject: Re: [PATCH] xfs; fix xfs_da_args sparse warning in xfs_readdir
From: Brian Foster <bfoster@xxxxxxxxxx>
Date: Fri, 6 Jun 2014 13:33:54 -0400
Cc: xfs@xxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <1402042701-26173-1-git-send-email-david@xxxxxxxxxxxxx>
References: <1402042701-26173-1-git-send-email-david@xxxxxxxxxxxxx>
User-agent: Mutt/1.5.23 (2014-03-12)
On Fri, Jun 06, 2014 at 06:18:21PM +1000, Dave Chinner wrote:
> From: Dave Chinner <dchinner@xxxxxxxxxx>
> 
> 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@xxxxxxxxx>
> Signed-off-by: Dave Chinner <dchinner@xxxxxxxxxx>
> ---

Reviewed-by: Brian Foster <bfoster@xxxxxxxxxx>

>  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@xxxxxxxxxxx
> http://oss.sgi.com/mailman/listinfo/xfs

<Prev in Thread] Current Thread [Next in Thread>