On Mon, Oct 21, 2019 at 09:14:04AM -0400, Brian Foster wrote: > sparse complains about the initialization used for the allocation > cursor: > > >> fs/xfs/libxfs/xfs_alloc.c:1170:41: sparse: sparse: Using plain integer as NULL pointer > > Fix it by removing the unnecessary initialization value. > > Reported-by: kbuild test robot <lkp@xxxxxxxxx> > Signed-off-by: Brian Foster <bfoster@xxxxxxxxxx> Looks ok, though I have to rebase the iomap / xfs branches anyway so I might apply this to the original patch. Reviewed-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx> --D > --- > fs/xfs/libxfs/xfs_alloc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/xfs/libxfs/xfs_alloc.c b/fs/xfs/libxfs/xfs_alloc.c > index e9f74eb92073..925eba9489d5 100644 > --- a/fs/xfs/libxfs/xfs_alloc.c > +++ b/fs/xfs/libxfs/xfs_alloc.c > @@ -1471,7 +1471,7 @@ STATIC int > xfs_alloc_ag_vextent_near( > struct xfs_alloc_arg *args) > { > - struct xfs_alloc_cur acur = {0,}; > + struct xfs_alloc_cur acur = {}; > int error; /* error code */ > int i; /* result code, temporary */ > xfs_agblock_t bno; > -- > 2.20.1 >