Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Geert Uytterhoeven and committed by
Mike Snitzer
f4ad317a e223e1de

+2 -2
+2 -2
drivers/md/dm-log-writes.c
··· 55 55 #define LOG_DISCARD_FLAG (1 << 2) 56 56 #define LOG_MARK_FLAG (1 << 3) 57 57 58 - #define WRITE_LOG_VERSION 1 59 - #define WRITE_LOG_MAGIC 0x6a736677736872 58 + #define WRITE_LOG_VERSION 1ULL 59 + #define WRITE_LOG_MAGIC 0x6a736677736872ULL 60 60 61 61 /* 62 62 * The disk format for this is braindead simple.