summaryrefslogtreecommitdiffstats
path: root/mm/memory.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-02-16 16:25:53 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-02-22 15:40:06 +0100
commit327b199512b4c4b7bc7375604f1b6d050fec881e (patch)
tree1efccab9109f9191eedd7018676ce7c31583f99c /mm/memory.c
parentefb5d2d65820bc4864e578b39a94fb5bd5784355 (diff)
downloadlinux-stable-327b199512b4c4b7bc7375604f1b6d050fec881e.tar.gz
linux-stable-327b199512b4c4b7bc7375604f1b6d050fec881e.tar.bz2
linux-stable-327b199512b4c4b7bc7375604f1b6d050fec881e.zip
mm: hide a #warning for COMPILE_TEST
commit af27d9403f5b80685b79c88425086edccecaf711 upstream. We get a warning about some slow configurations in randconfig kernels: mm/memory.c:83:2: error: #warning Unfortunate NUMA and NUMA Balancing config, growing page-frame for last_cpupid. [-Werror=cpp] The warning is reasonable by itself, but gets in the way of randconfig build testing, so I'm hiding it whenever CONFIG_COMPILE_TEST is set. The warning was added in 2013 in commit 75980e97dacc ("mm: fold page->_last_nid into page->flags where possible"). Cc: stable@vger.kernel.org Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/memory.c')
-rw-r--r--mm/memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory.c b/mm/memory.c
index 793004608332..93e51ad41ba3 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -81,7 +81,7 @@
#include "internal.h"
-#ifdef LAST_CPUPID_NOT_IN_PAGE_FLAGS
+#if defined(LAST_CPUPID_NOT_IN_PAGE_FLAGS) && !defined(CONFIG_COMPILE_TEST)
#warning Unfortunate NUMA and NUMA Balancing config, growing page-frame for last_cpupid.
#endif