aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2007-06-28 02:46:56 -0400
committerTim Shimmin <tes@chook.melbourne.sgi.com>2007-07-14 01:40:02 -0400
commit0892ccd6fe13e08ad9e57007afbb78fe02d66005 (patch)
treeea9ee48df07cd725e4aa6ecc05fd66aad5b76c8f /fs/xfs
parentfbf3ce8d8ec508f6bd99b36de034d2ae3e1ae7ac (diff)
[XFS] Use uninitialized_var macro to stop warning about rtx
Appease gcc in regards to "warning: 'rtx' is used uninitialized in this function". SGI-PV: 907752 SGI-Modid: xfs-linux-melb:xfs-kern:29007a Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/xfs_bmap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c
index 183add2f21b7..09d86388bb71 100644
--- a/fs/xfs/xfs_bmap.c
+++ b/fs/xfs/xfs_bmap.c
@@ -2605,7 +2605,6 @@ xfs_bmap_rtalloc(
2605 xfs_extlen_t prod = 0; /* product factor for allocators */ 2605 xfs_extlen_t prod = 0; /* product factor for allocators */
2606 xfs_extlen_t ralen = 0; /* realtime allocation length */ 2606 xfs_extlen_t ralen = 0; /* realtime allocation length */
2607 xfs_extlen_t align; /* minimum allocation alignment */ 2607 xfs_extlen_t align; /* minimum allocation alignment */
2608 xfs_rtblock_t rtx; /* realtime extent number */
2609 xfs_rtblock_t rtb; 2608 xfs_rtblock_t rtb;
2610 2609
2611 mp = ap->ip->i_mount; 2610 mp = ap->ip->i_mount;
@@ -2643,6 +2642,8 @@ xfs_bmap_rtalloc(
2643 * pick an extent that will space things out in the rt area. 2642 * pick an extent that will space things out in the rt area.
2644 */ 2643 */
2645 if (ap->eof && ap->off == 0) { 2644 if (ap->eof && ap->off == 0) {
2645 xfs_rtblock_t uninitialized_var(rtx); /* realtime extent no */
2646
2646 error = xfs_rtpick_extent(mp, ap->tp, ralen, &rtx); 2647 error = xfs_rtpick_extent(mp, ap->tp, ralen, &rtx);
2647 if (error) 2648 if (error)
2648 return error; 2649 return error;