Re: XFS compilation warning in 2.6.9-rc1

From: Christoph Hellwig
Date: Tue Aug 24 2004 - 07:37:45 EST


On Tue, Aug 24, 2004 at 01:30:16PM +0100, Andrew Clayton wrote:
> CC fs/xfs/xfs_bmap.o
> fs/xfs/xfs_bmap.c: In function `xfs_bmap_do_search_extents':
> fs/xfs/xfs_bmap.c:3434: warning: integer constant is too large for
> "long" type
> fs/xfs/xfs_bmap.c:3435: warning: integer constant is too large for
> "long" type
> CC fs/xfs/xfs_bmap_btree.o


--- 1.26/fs/xfs/xfs_bmap.c 2004-08-19 05:36:06 +02:00
+++ edited/fs/xfs/xfs_bmap.c 2004-08-24 14:35:40 +02:00
@@ -3431,15 +3431,16 @@
* uninitialized br_startblock field.
*/

- got.br_startoff = 0xffa5a5a5a5a5a5a5;
- got.br_blockcount = 0xa55a5a5a5a5a5a5a;
+ got.br_startoff = 0xffa5a5a5a5a5a5a5LL;
+ got.br_blockcount = 0xa55a5a5a5a5a5a5aLL;
got.br_state = XFS_EXT_INVALID;

- #if XFS_BIG_BLKNOS
- got.br_startblock = 0xffffa5a5a5a5a5a5;
- #else
- got.br_startblock = 0xffffa5a5;
- #endif
+#if XFS_BIG_BLKNOS
+ got.br_startblock = 0xffffa5a5a5a5a5a5LL;
+#else
+ got.br_startblock = 0xffffa5a5;
+#endif
+
if (lastx != NULLEXTNUM && lastx < nextents)
ep = base + lastx;
else
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/