summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5c097f5)
raw | patch | inline | side by side (parent: 5c097f5)
author | Geert Uytterhoeven <geert@linux-m68k.org> | |
Thu, 5 Apr 2018 12:57:11 +0000 (14:57 +0200) | ||
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
Sun, 4 Nov 2018 13:52:43 +0000 (14:52 +0100) |
[ Upstream commit 3995bbf53bd2047f2720c6fdd4bf38f6d942a0c0 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/inode.c | patch | blob | history |
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c
index 2cd0b3053439fa689bd5c2fc5e712a5273264ca2..d01cbca84701fe870e3f28a78a87d371306a610e 100644 (file)
--- a/fs/cifs/inode.c
+++ b/fs/cifs/inode.c
/* Simple function to return a 64 bit hash of string. Rarely called */
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;
while (*str)