From: Christoph Hellwig Date: Fri, 8 Jul 2011 12:34:18 +0000 (+0200) Subject: xfs: work around bogus gcc warning in xfs_allocbt_init_cursor X-Git-Tag: v3.1-rc1~322^2~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dec58f1dfd30a3c3e9dadc808692f4e5cd922745;p=pandora-kernel.git xfs: work around bogus gcc warning in xfs_allocbt_init_cursor GCC 4.6 complains about an array subscript is above array bounds when using the btree index to index into the agf_levels array. The only two indices passed in are 0 and 1, and we have an assert insuring that. Replace the trick of using the array index directly with using constants in the already existing branch for assigning the XFS_BTREE_LASTREC_UPDATE flag. Signed-off-by: Christoph Hellwig Reviewed-by: Alex Elder Reviewed-by: Dave Chinner --- Reading git-diff-tree failed