summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2015-04-19 00:07:30 +0200
committerMike Snitzer <snitzer@redhat.com>2015-05-29 14:19:01 -0400
commitf4ad317aedf836e7bb67108a119bfec7f3d97ef1 (patch)
treed40127feb839af6e919ad47895728a3e4c972dd8
parente223e1de4f8a586662c4917f6f673126574960dd (diff)
downloadop-kernel-dev-f4ad317aedf836e7bb67108a119bfec7f3d97ef1.zip
op-kernel-dev-f4ad317aedf836e7bb67108a119bfec7f3d97ef1.tar.gz
dm log writes: use ULL suffix for 64-bit constants
On 32-bit: drivers/md/dm-log-writes.c: In function ‘log_super’: drivers/md/dm-log-writes.c:323: warning: integer constant is too large for ‘long’ type Add a ULL suffix to WRITE_LOG_MAGIC to fix this. Also add a ULL suffix to WRITE_LOG_VERSION as it's stored in a __le64 field. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
-rw-r--r--drivers/md/dm-log-writes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/dm-log-writes.c b/drivers/md/dm-log-writes.c
index 93e0844..ad1b049 100644
--- a/drivers/md/dm-log-writes.c
+++ b/drivers/md/dm-log-writes.c
@@ -55,8 +55,8 @@
#define LOG_DISCARD_FLAG (1 << 2)
#define LOG_MARK_FLAG (1 << 3)
-#define WRITE_LOG_VERSION 1
-#define WRITE_LOG_MAGIC 0x6a736677736872
+#define WRITE_LOG_VERSION 1ULL
+#define WRITE_LOG_MAGIC 0x6a736677736872ULL
/*
* The disk format for this is braindead simple.
OpenPOWER on IntegriCloud