Skip to content

Commit af27d94

Browse files
arndbtorvalds
authored andcommitted
mm: hide a #warning for COMPILE_TEST
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 75980e9 ("mm: fold page->_last_nid into page->flags where possible"). Cc: [email protected] Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 78352f1 commit af27d94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/memory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080

8181
#include "internal.h"
8282

83-
#ifdef LAST_CPUPID_NOT_IN_PAGE_FLAGS
83+
#if defined(LAST_CPUPID_NOT_IN_PAGE_FLAGS) && !defined(CONFIG_COMPILE_TEST)
8484
#warning Unfortunate NUMA and NUMA Balancing config, growing page-frame for last_cpupid.
8585
#endif
8686

0 commit comments

Comments
 (0)