From: Andrew Morton fs/xfs/xfs_rtalloc.cfs/xfs/xfs_rtalloc.c: In function `xfs_growfs_rt': fs/xfs/xfs_rtalloc.c:1859: warning: 'cancelflags' might be used uninitialized in this function fs/xfs/xfs_rtalloc.c:1875: warning: 'tp' might be used uninitialized in this function Cc: Timothy Shimmin Cc: David Chinner Cc: Lachlan McIlroy Signed-off-by: Andrew Morton --- fs/xfs/xfs_rtalloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN fs/xfs/xfs_rtalloc.c~xfs-suppress-uninitialized-var-warnings fs/xfs/xfs_rtalloc.c --- a/fs/xfs/xfs_rtalloc.c~xfs-suppress-uninitialized-var-warnings +++ a/fs/xfs/xfs_rtalloc.c @@ -1856,7 +1856,7 @@ xfs_growfs_rt( { xfs_rtblock_t bmbno; /* bitmap block number */ xfs_buf_t *bp; /* temporary buffer */ - int cancelflags; /* flags for xfs_trans_cancel */ + int uninitialized_var(cancelflags); /* flags for xfs_trans_cancel */ int error; /* error return value */ xfs_inode_t *ip; /* bitmap inode, used as lock */ xfs_mount_t *nmp; /* new (fake) mount structure */ @@ -1872,7 +1872,7 @@ xfs_growfs_rt( xfs_extlen_t rsumblocks; /* current number of rt summary blks */ xfs_sb_t *sbp; /* old superblock */ xfs_fsblock_t sumbno; /* summary block number */ - xfs_trans_t *tp; /* transaction pointer */ + xfs_trans_t *uninitialized_var(tp); /* transaction pointer */ sbp = &mp->m_sb; /* _