From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-21.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E5B55C47080 for ; Mon, 31 May 2021 22:05:59 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 7635061287 for ; Mon, 31 May 2021 22:05:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7635061287 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id E5B196B0036; Mon, 31 May 2021 18:05:58 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E31FC6B006C; Mon, 31 May 2021 18:05:58 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D20DA8D0001; Mon, 31 May 2021 18:05:58 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0191.hostedemail.com [216.40.44.191]) by kanga.kvack.org (Postfix) with ESMTP id A08276B0036 for ; Mon, 31 May 2021 18:05:58 -0400 (EDT) Received: from smtpin06.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 33910180AD80F for ; Mon, 31 May 2021 22:05:58 +0000 (UTC) X-FDA: 78202909596.06.C715E94 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf08.hostedemail.com (Postfix) with ESMTP id 51E66801935A for ; Mon, 31 May 2021 22:05:46 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 294A361287; Mon, 31 May 2021 22:05:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1622498755; bh=S8Vmtl5M2oKlz2MuDwXQOhavlar2Wd2YingPB7y4m6A=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=jkxTNo3aXVl6RwSzHrY9gN2FfL7aDHan92raGIWoMQu2UZ7ISbhzEtDEXumRZghci wwRq/1PjODS/KoxT2hAaMOMeRz6y2Cc3oyVYNGYQjBEgGvauAKD1nBTcGuEzMuVd8v xlcn82RTBl/l6a+ADvT6Q0EhGKxR36oTNSsCObag= Date: Mon, 31 May 2021 15:05:54 -0700 From: Andrew Morton To: Mel Gorman Cc: kernel test robot , kbuild-all@lists.01.org, clang-built-linux@googlegroups.com, Linux Memory Management List , Yang Shi Subject: Re: [linux-next:master 5596/5886] arch/x86/include/asm/fixmap.h:103:48: error: use of undeclared identifier 'NR_CPUS' Message-Id: <20210531150554.bb7769cdedb4fd9bf471b891@linux-foundation.org> In-Reply-To: <20210531093917.GL3672@suse.de> References: <202105301909.iEwOXNWt-lkp@intel.com> <20210531093917.GL3672@suse.de> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 51E66801935A Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=jkxTNo3a; dmarc=none; spf=pass (imf08.hostedemail.com: domain of akpm@linux-foundation.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org X-Rspamd-Server: rspam03 X-Stat-Signature: jzb9psepjfn1gnperkgjf3x191hx36ci X-HE-Tag: 1622498746-933646 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Mon, 31 May 2021 10:39:17 +0100 Mel Gorman wrote: > On Sun, May 30, 2021 at 07:58:14PM +0800, kernel test robot wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > > head: 3e029760e6f8ce90c122c267a039ae73b3f1f5a4 > > commit: 366e9aec4a22d77b869f1b7641a74fdd96f02b4c [5596/5886] mm/early_ioremap: add prototype for early_memremap_pgprot_adjust > > config: x86_64-randconfig-a006-20210530 (attached as .config) > > compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project bc6799f2f79f0ae87e9f1ebf9d25ba799fbd25a9) > > reproduce (this is a W=1 build): > > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > > chmod +x ~/bin/make.cross > > # install x86_64 cross compiling tool for clang build > > # apt-get install binutils-x86-64-linux-gnu > > # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=366e9aec4a22d77b869f1b7641a74fdd96f02b4c > > git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > > git fetch --no-tags linux-next master > > git checkout 366e9aec4a22d77b869f1b7641a74fdd96f02b4c > > # save the attached .config to linux build tree > > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 > > > > Hi Andrew, > > Can you please drop the patch > mm-early_ioremap-add-prototype-for-early_memremap_pgprot_adjust.patch? Didn't I fix this with mm-early_ioremap-add-prototype-for-early_memremap_pgprot_adjust-fix.patch? This fix is lame - x86's fixmap.h should be standalone. But this gets us moving ahead with the MM changes for now. From: Andrew Morton Subject: mm-early_ioremap-add-prototype-for-early_memremap_pgprot_adjust-fix x86_64 asm/fixmap.h needs linux/threads.h for NR_CPUS Cc: Dan Streetman Cc: David Hildenbrand Cc: Mel Gorman Cc: Michal Hocko Cc: Vlastimil Babka Cc: Yang Shi Signed-off-by: Andrew Morton --- include/asm-generic/early_ioremap.h | 1 + 1 file changed, 1 insertion(+) --- a/include/asm-generic/early_ioremap.h~mm-early_ioremap-add-prototype-for-early_memremap_pgprot_adjust-fix +++ a/include/asm-generic/early_ioremap.h @@ -3,6 +3,7 @@ #define _ASM_EARLY_IOREMAP_H_ #include +#include /* x86 fixmap.h needs NR_CPUS */ #include /* _