From 87cb971630b10f869b14988ff8dbbedc9c401f7f Mon Sep 17 00:00:00 2001 From: Andy Grover Date: Thu, 8 Oct 2020 10:42:01 -0700 Subject: [PATCH] scoutfs: fix hash compiler warnings Signed-off-by: Andy Grover --- kmod/src/hash.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kmod/src/hash.h b/kmod/src/hash.h index 9b169877..cb50b99c 100644 --- a/kmod/src/hash.h +++ b/kmod/src/hash.h @@ -26,11 +26,11 @@ static inline u32 fnv1a32(const void *data, unsigned int len) static inline u64 fnv1a64(const void *data, unsigned int len) { - u64 hash = 0xcbf29ce484222325; + u64 hash = 0xcbf29ce484222325ULL; while (len--) { hash ^= *(u8 *)(data++); - hash *= 0x100000001b3; + hash *= 0x100000001b3ULL; } return hash;