diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2012-03-21 16:33:42 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-21 17:54:54 -0700 |
commit | 1de5b41cd3b2474c2770b825266d372073e1b28b (patch) | |
tree | 3968c179cc49ca60a425b7fe4b76808c0f0af9e0 /fs/namei.c | |
parent | 1a5a9906d4e8d1976b701f889d8f35d54b928f25 (diff) | |
download | op-kernel-dev-1de5b41cd3b2474c2770b825266d372073e1b28b.zip op-kernel-dev-1de5b41cd3b2474c2770b825266d372073e1b28b.tar.gz |
fs/namei.c: fix warnings on 32-bit
i386 allnoconfig:
fs/namei.c: In function 'has_zero':
fs/namei.c:1617: warning: integer constant is too large for 'unsigned long' type
fs/namei.c:1617: warning: integer constant is too large for 'unsigned long' type
fs/namei.c: In function 'hash_name':
fs/namei.c:1635: warning: integer constant is too large for 'unsigned long' type
There must be a tidier way of doing this.
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/namei.c')
-rw-r--r-- | fs/namei.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1455,9 +1455,15 @@ done: } EXPORT_SYMBOL(full_name_hash); +#ifdef CONFIG_64BIT #define ONEBYTES 0x0101010101010101ul #define SLASHBYTES 0x2f2f2f2f2f2f2f2ful #define HIGHBITS 0x8080808080808080ul +#else +#define ONEBYTES 0x01010101ul +#define SLASHBYTES 0x2f2f2f2ful +#define HIGHBITS 0x80808080ul +#endif /* Return the high bit set in the first byte that is a zero */ static inline unsigned long has_zero(unsigned long a) |