diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2018-04-05 08:57:11 -0400 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2018-04-11 17:44:58 -0400 |
commit | 3995bbf53bd2047f2720c6fdd4bf38f6d942a0c0 (patch) | |
tree | 8a179bb02edbccdf89c9bf9bc0a8dd0ac75e5f20 | |
parent | c318e6c26cbe91bfcd1e9bca8840de2fb57aef4f (diff) |
cifs: Use ULL suffix for 64-bit constant
On 32-bit (e.g. with m68k-linux-gnu-gcc-4.1):
fs/cifs/inode.c: In function ‘simple_hashstr’:
fs/cifs/inode.c:713: warning: integer constant is too large for ‘long’ type
Fixes: 7ea884c77e5c97f1 ("smb3: Fix root directory when server returns inode number of zero")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
-rw-r--r-- | fs/cifs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index f856df4adae3..3c371f7f5963 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c | |||
@@ -710,7 +710,7 @@ cgfi_exit: | |||
710 | /* Simple function to return a 64 bit hash of string. Rarely called */ | 710 | /* Simple function to return a 64 bit hash of string. Rarely called */ |
711 | static __u64 simple_hashstr(const char *str) | 711 | static __u64 simple_hashstr(const char *str) |
712 | { | 712 | { |
713 | const __u64 hash_mult = 1125899906842597L; /* a big enough prime */ | 713 | const __u64 hash_mult = 1125899906842597ULL; /* a big enough prime */ |
714 | __u64 hash = 0; | 714 | __u64 hash = 0; |
715 | 715 | ||
716 | while (*str) | 716 | while (*str) |