From: Carlos Maiolino <cmaiolino@xxxxxxxxxx> Due the initialization of blockmask variable with its definition, gcc issues the following warning due an unused variable during compilation time. fs/xfs//xfs_aops.c: In function ‘xfs_finish_page_writeback’: fs/xfs//xfs_aops.c:97:15: warning: unused variable ‘blockmask’ [-Wunused-variable] unsigned int blockmask = (1 << inode->i_blkbits) - 1; ^ Remove this warning by initializing the variable after its definition. This change causes no difference in the generated assembly code Signed-off-by: Carlos Maiolino <cmaiolino@xxxxxxxxxx> --- fs/xfs/xfs_aops.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c index 40645a4..f4e2d3b 100644 --- a/fs/xfs/xfs_aops.c +++ b/fs/xfs/xfs_aops.c @@ -94,11 +94,12 @@ xfs_finish_page_writeback( struct bio_vec *bvec, int error) { - unsigned int blockmask = (1 << inode->i_blkbits) - 1; + unsigned int blockmask; unsigned int end = bvec->bv_offset + bvec->bv_len - 1; struct buffer_head *head, *bh; unsigned int off = 0; + blockmask = (1 << inode->i_blkbits) - 1; ASSERT(bvec->bv_offset < PAGE_SIZE); ASSERT((bvec->bv_offset & blockmask) == 0); ASSERT(end < PAGE_SIZE); -- 2.4.11 _______________________________________________ xfs mailing list xfs@xxxxxxxxxxx http://oss.sgi.com/mailman/listinfo/xfs