From: Richard Yao Date: Mon, 9 Jul 2012 23:41:28 +0000 (-0400) Subject: Use ULL suffix in constants X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=commitdiff_plain;h=a3873583c2128c6a41e640fe35f544f8c54848d8;p=zfs.git Use ULL suffix in constants The lack of the ULL suffix causes warnings such as the following on 32-bit systems: In function 'zfsctl_is_snapdir': zfs-0.6.0//module/zfs/zfs_ctldir.c:151: warning: integer constant is too large for 'long' type We add the ULL suffix to fix that. Signed-off-by: Richard Yao Signed-off-by: Brian Behlendorf Closes #813 --- diff --git a/include/sys/zfs_ctldir.h b/include/sys/zfs_ctldir.h index e598529..0a3c142 100644 --- a/include/sys/zfs_ctldir.h +++ b/include/sys/zfs_ctldir.h @@ -103,10 +103,10 @@ extern void zfsctl_fini(void); * However, they should be as large as possible to avoid conflicts * with the objects which are assigned monotonically by the dmu. */ -#define ZFSCTL_INO_ROOT 0x0000FFFFFFFFFFFF -#define ZFSCTL_INO_SHARES 0x0000FFFFFFFFFFFE -#define ZFSCTL_INO_SNAPDIR 0x0000FFFFFFFFFFFD -#define ZFSCTL_INO_SNAPDIRS 0x0000FFFFFFFFFFFC +#define ZFSCTL_INO_ROOT 0x0000FFFFFFFFFFFFULL +#define ZFSCTL_INO_SHARES 0x0000FFFFFFFFFFFEULL +#define ZFSCTL_INO_SNAPDIR 0x0000FFFFFFFFFFFDULL +#define ZFSCTL_INO_SNAPDIRS 0x0000FFFFFFFFFFFCULL #define ZFSCTL_EXPIRE_SNAPSHOT 300