summaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven2016-09-02 01:14:53 +0200
committerLinus Torvalds2016-09-02 02:52:01 +0200
commite6173ba42bbdba05fd4f3021c0beda0506271507 (patch)
tree0b3efdf4ee72f320072389c836b501fbda0c0180 /mm/page_alloc.c
parentlib/test_hash.c: fix warning in two-dimensional array init (diff)
downloadkernel-qcow2-linux-e6173ba42bbdba05fd4f3021c0beda0506271507.tar.gz
kernel-qcow2-linux-e6173ba42bbdba05fd4f3021c0beda0506271507.tar.xz
kernel-qcow2-linux-e6173ba42bbdba05fd4f3021c0beda0506271507.zip
lib/test_hash.c: fix warning in preprocessor symbol evaluation
Some versions of gcc don't like tests for the value of an undefined preprocessor symbol, even in the #else branch of an #ifndef: lib/test_hash.c:224:7: warning: "HAVE_ARCH__HASH_32" is not defined [-Wundef] #elif HAVE_ARCH__HASH_32 != 1 ^ lib/test_hash.c:229:7: warning: "HAVE_ARCH_HASH_32" is not defined [-Wundef] #elif HAVE_ARCH_HASH_32 != 1 ^ lib/test_hash.c:234:7: warning: "HAVE_ARCH_HASH_64" is not defined [-Wundef] #elif HAVE_ARCH_HASH_64 != 1 ^ Seen with gcc 4.9, not seen with 4.1.2. Change the logic to only check the value inside an #ifdef to fix this. Fixes: 468a9428521e7d00 ("<linux/hash.h>: Add support for architecture-specific functions") Link: http://lkml.kernel.org/r/20160829214952.1334674-4-arnd@arndb.de Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: George Spelvin <linux@sciencehorizons.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions