[PATCH 1/2] xfs: suppress spurious uninitialised var warning in xfs_bmapi()
Christoph Hellwig
hch at infradead.org
Tue Jan 19 03:22:40 CST 2010
On Tue, Jan 19, 2010 at 11:41:50AM +1100, Dave Chinner wrote:
> Initialise the xfs_bmalloca_t structure to zero to avoid uninitialised
> variable warnings. This is done by zeroing the arg structure rather than
> using the uninitialised_var() trick so we know for certain that the
> structure is correctly initialised as xfs_bmapi is a very complex
> function and it is difficult to prove warnings are spurious.
>
> Signed-off-by: Dave Chinner <david at fromorbit.com>
Looks good,
Reviewed-by: Christoph Hellwig <hch at lst.de>
More information about the xfs
mailing list