mm: hide a #warning for COMPILE_TEST
authorArnd Bergmann <arnd@arndb.de>
Fri, 16 Feb 2018 15:25:53 +0000 (16:25 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 16 Feb 2018 17:41:36 +0000 (09:41 -0800)
commitaf27d9403f5b80685b79c88425086edccecaf711
tree8daca147cf5c612343ba19cd7a6548c474afdb51
parent78352f18a4930b9484f85cf787a37134a5b5693a
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 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>
mm/memory.c