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

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>

authored by

Geert Uytterhoeven and committed by
Steve French
3995bbf5 c318e6c2

+1 -1
+1 -1
fs/cifs/inode.c
··· 710 710 /* Simple function to return a 64 bit hash of string. Rarely called */ 711 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 714 __u64 hash = 0; 715 715 716 716 while (*str)