From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f197.google.com (mail-wr0-f197.google.com [209.85.128.197]) by kanga.kvack.org (Postfix) with ESMTP id 0ADC06B0012 for ; Fri, 16 Feb 2018 10:26:25 -0500 (EST) Received: by mail-wr0-f197.google.com with SMTP id s18so1832667wrg.5 for ; Fri, 16 Feb 2018 07:26:24 -0800 (PST) Received: from mout.kundenserver.de (mout.kundenserver.de. [212.227.126.135]) by mx.google.com with ESMTPS id c6si9744475wma.275.2018.02.16.07.26.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Feb 2018 07:26:23 -0800 (PST) From: Arnd Bergmann Subject: [PATCH] mm: hide a #warning for COMPILE_TEST Date: Fri, 16 Feb 2018 16:25:53 +0100 Message-Id: <20180216152608.1626885-1-arnd@arndb.de> Sender: owner-linux-mm@kvack.org List-ID: To: Andrew Morton Cc: Arnd Bergmann , stable@vger.kernel.org, Michal Hocko , "Kirill A. Shutemov" , Dave Jiang , Jan Kara , Ingo Molnar , =?UTF-8?q?J=C3=A9r=C3=B4me=20Glisse?= , Huang Ying , Matthew Wilcox , Ross Zwisler , Hugh Dickins , Tobin C Harding , linux-mm@kvack.org, linux-kernel@vger.kernel.org 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 --- mm/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.9.0 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org