dm log writes: use ULL suffix for 64-bit constants
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sat, 18 Apr 2015 22:07:30 +0000 (00:07 +0200)
committerMike Snitzer <snitzer@redhat.com>
Fri, 29 May 2015 18:19:01 +0000 (14:19 -0400)
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>
drivers/md/dm-log-writes.c

index 93e08446a87d06ff3375f78d6e28ece4a1063204..ad1b049ae2ab80a9487eaf8269f226dbb21ea4a9 100644 (file)
@@ -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.