diff mbox series

mm: hide a #warning for COMPILE_TEST

Message ID 20180216152608.1626885-1-arnd@arndb.de
State Accepted
Commit af27d9403f5b80685b79c88425086edccecaf711
Headers show
Series mm: hide a #warning for COMPILE_TEST | expand

Commit Message

Arnd Bergmann Feb. 16, 2018, 3:25 p.m. UTC
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>

---
 mm/memory.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.9.0

Comments

Linus Torvalds Feb. 16, 2018, 5:42 p.m. UTC | #1
On Fri, Feb 16, 2018 at 7:25 AM, Arnd Bergmann <arnd@arndb.de> wrote:
>

> 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.


Ack, looks sane, so I just applied it directly to my tree instead of
waiting for this to get back to me from Andrew ;)

                 Linus
diff mbox series

Patch

diff --git a/mm/memory.c b/mm/memory.c
index a728bed16c20..fc7779165dcf 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