xfs
[Top] [All Lists]

[PATCH 1/3] xfs: fix compile of xfs_btree_readahead_lblock on m68k

To: xfs@xxxxxxxxxxx
Subject: [PATCH 1/3] xfs: fix compile of xfs_btree_readahead_lblock on m68k
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Thu, 08 Jan 2009 13:42:23 -0500
References: <20090108184222.244013000@bombadil.infradead.org>
User-agent: quilt/0.46-1
Change the left/right variables to the proper always 64bit xfs_dfsbo_t
type because otherwise compilation fails for Geert on m68k without
CONFIG_LBD:

| fs/xfs/xfs_btree.c: In function 'xfs_btree_readahead_lblock':
| fs/xfs/xfs_btree.c:736: warning: comparison is always true due to limited 
range of data type
| fs/xfs/xfs_btree.c:741: warning: comparison is always true due to limited 
range of data type


Reported-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
Signed-off-by: Christoph Hellwig <hch@xxxxxx>

Index: linux-2.6/fs/xfs/xfs_btree.c
===================================================================
--- linux-2.6.orig/fs/xfs/xfs_btree.c   2009-01-01 15:57:04.606547140 +0100
+++ linux-2.6/fs/xfs/xfs_btree.c        2009-01-01 15:57:24.780673454 +0100
@@ -730,8 +730,8 @@ xfs_btree_readahead_lblock(
        struct xfs_btree_block  *block)
 {
        int                     rval = 0;
-       xfs_fsblock_t           left = be64_to_cpu(block->bb_u.l.bb_leftsib);
-       xfs_fsblock_t           right = be64_to_cpu(block->bb_u.l.bb_rightsib);
+       xfs_dfsbno_t            left = be64_to_cpu(block->bb_u.l.bb_leftsib);
+       xfs_dfsbno_t            right = be64_to_cpu(block->bb_u.l.bb_rightsib);
 
        if ((lr & XFS_BTCUR_LEFTRA) && left != NULLDFSBNO) {
                xfs_btree_reada_bufl(cur->bc_mp, left, 1);

-- 

<Prev in Thread] Current Thread [Next in Thread>