Commit 3995bbf5 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Steve French

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: 7ea884c7 ("smb3: Fix root directory when server returns inode number of zero")
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
Reviewed-by: default avatarAurelien Aptel <aaptel@suse.com>
parent c318e6c2
...@@ -710,7 +710,7 @@ cifs_get_file_info(struct file *filp) ...@@ -710,7 +710,7 @@ cifs_get_file_info(struct file *filp)
/* Simple function to return a 64 bit hash of string. Rarely called */ /* Simple function to return a 64 bit hash of string. Rarely called */
static __u64 simple_hashstr(const char *str) static __u64 simple_hashstr(const char *str)
{ {
const __u64 hash_mult = 1125899906842597L; /* a big enough prime */ const __u64 hash_mult = 1125899906842597ULL; /* a big enough prime */
__u64 hash = 0; __u64 hash = 0;
while (*str) while (*str)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment