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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 15BBFC433EF for ; Thu, 10 Feb 2022 16:02:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=iOXf6P67/nCQVNDgKo/ZwCN6Yu7oDHSoUrYxsnoLkgU=; b=SBbJkGHL17P5Cp s5Qi54TFgjyvm7WvCjP9kg2gQ9rBkkPK1CP/WnUDIwYZ73sEj7xdIT+tFhOrlJUFv+MPC5mc3+MwF 30VbWlofOwl626ClGUFZ0JEzOpOGNCTgjrvYZPsi8/f6TvWbrEly7uYEldG9GjpKmXFK6GJkpNRxl v/7xwY40tt9dawXgLwR8sUUi83T2YRDK12nuGHZgqMfUEPR371w6RtnQCEHfKWkc33Vs8cmcjrFdA B9fBU/QEbfMKrtWw5HTO9XtO495CMg7bwclWpDJurtDc/UOLkjV+3j1MkkujuxzcBa3YeYu23l+HK e4nqPT2mYmrBCOKkL+YQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nIBsX-004IjX-W5; Thu, 10 Feb 2022 16:01:06 +0000 Received: from mga14.intel.com ([192.55.52.115]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nIBsR-004IiL-1j for linux-arm-kernel@lists.infradead.org; Thu, 10 Feb 2022 16:01:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644508859; x=1676044859; h=date:from:to:cc:subject:message-id:mime-version; bh=gSlFaoBD3e0qZd8B71IAIZGIhqDqoyZsLK8L6/99nII=; b=KhwNTxQpbpLjReXXwUBSFsyWRrIbI/cn1cm8WbiK6l9Nxj47CtjBIgD7 mnxTsgRK8GTByl1rNyBmt8jdd/znbsYTay3qLS1azbUgHW15fsXXldC+X bP8yf6KYYKCfLzdT9Z19iGVA9OHwKl7Z3jD1GzWlNyAzw0Rb6LdD/xHXt ix8HEeRMnGlMX+X73quZ8qVWy/V4+IPXpAg51QqVH3i0xd81Ub+ycoGmr 4ueh11nyd6ombfZ3ZS7BSWAqA9aIKZ0PQZuaG6gZAnNgLFznEbSO3VwkF LXeHXTvd0bs17IgGifMvgq03FTokO3eyCwATIBhJ9KMdnFFSaEgPF4HkC A==; X-IronPort-AV: E=McAfee;i="6200,9189,10254"; a="249728112" X-IronPort-AV: E=Sophos;i="5.88,359,1635231600"; d="scan'208";a="249728112" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2022 08:00:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,359,1635231600"; d="scan'208";a="585997294" Received: from lkp-server01.sh.intel.com (HELO d95dc2dabeb1) ([10.239.97.150]) by fmsmga008.fm.intel.com with ESMTP; 10 Feb 2022 08:00:56 -0800 Received: from kbuild by d95dc2dabeb1 with local (Exim 4.92) (envelope-from ) id 1nIBsN-0003QN-Ew; Thu, 10 Feb 2022 16:00:55 +0000 Date: Fri, 11 Feb 2022 00:00:53 +0800 From: kernel test robot To: Michal Simek Cc: kbuild-all@lists.01.org, linux-arm-kernel@lists.infradead.org, Stefan Asserhall Subject: [xilinx-xlnx:xlnx_rebase_v5.15 480/923] include/linux/cpumask.h:95:42: error: enumerator value for 'FIX_KMAP_END' is not an integer constant Message-ID: <202202102317.n7MAKI54-lkp@intel.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220210_080059_186544_BEBAD403 X-CRM114-Status: GOOD ( 16.91 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15 head: 966124532656bc95d781abf57531e4cd4f962237 commit: 23b920bb9d53a7fcb8e9938f70228ae4d137f244 [480/923] microblaze: Enable experimental SMP functionality config: microblaze-randconfig-r023-20220210 (https://download.01.org/0day-ci/archive/20220210/202202102317.n7MAKI54-lkp@intel.com/config) compiler: microblaze-linux-gcc (GCC) 11.2.0 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 # https://github.com/Xilinx/linux-xlnx/commit/23b920bb9d53a7fcb8e9938f70228ae4d137f244 git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15 git checkout 23b920bb9d53a7fcb8e9938f70228ae4d137f244 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=microblaze SHELL=/bin/bash arch/microblaze/kernel/ mm/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All error/warnings (new ones prefixed by >>): In file included from include/linux/smp.h:13, from include/linux/lockdep.h:14, from include/linux/spinlock.h:63, from include/linux/mmzone.h:8, from include/linux/gfp.h:6, from include/linux/mm.h:10, from arch/microblaze/kernel/ptrace.c:28: >> include/linux/cpumask.h:95:42: error: enumerator value for 'FIX_KMAP_END' is not an integer constant 95 | #define cpu_possible_mask ((const struct cpumask *)&__cpu_possible_mask) | ^~~~~~~ include/linux/cpumask.h:889:48: note: in expansion of macro 'cpu_possible_mask' 889 | #define num_possible_cpus() cpumask_weight(cpu_possible_mask) | ^~~~~~~~~~~~~~~~~ arch/microblaze/include/asm/fixmap.h:50:55: note: in expansion of macro 'num_possible_cpus' 50 | FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_MAX_IDX * num_possible_cpus()) - 1, | ^~~~~~~~~~~~~~~~~ -- >> arch/microblaze/kernel/smp.c:156:6: warning: no previous prototype for 'crash___smp_cross_call' [-Wmissing-prototypes] 156 | void crash___smp_cross_call(void (*crash_ipi_callback)(struct pt_regs *)) | ^~~~~~~~~~~~~~~~~~~~~~ arch/microblaze/kernel/smp.c: In function 'smp_prepare_cpus': >> arch/microblaze/kernel/smp.c:197:43: warning: parameter 'max_cpus' set but not used [-Wunused-but-set-parameter] 197 | void __init smp_prepare_cpus(unsigned int max_cpus) | ~~~~~~~~~~~~~^~~~~~~~ -- In file included from include/linux/smp.h:13, from include/linux/lockdep.h:14, from include/linux/spinlock.h:63, from include/linux/mmzone.h:8, from include/linux/gfp.h:6, from include/linux/mm.h:10, from mm/vmscan.c:15: >> include/linux/cpumask.h:95:42: error: enumerator value for 'FIX_KMAP_END' is not an integer constant 95 | #define cpu_possible_mask ((const struct cpumask *)&__cpu_possible_mask) | ^~~~~~~ include/linux/cpumask.h:889:48: note: in expansion of macro 'cpu_possible_mask' 889 | #define num_possible_cpus() cpumask_weight(cpu_possible_mask) | ^~~~~~~~~~~~~~~~~ arch/microblaze/include/asm/fixmap.h:50:55: note: in expansion of macro 'num_possible_cpus' 50 | FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_MAX_IDX * num_possible_cpus()) - 1, | ^~~~~~~~~~~~~~~~~ mm/vmscan.c: In function 'demote_page_list': mm/vmscan.c:1340:13: warning: variable 'err' set but not used [-Wunused-but-set-variable] 1340 | int err; | ^~~ -- In file included from mm/percpu.c:72: >> include/linux/cpumask.h:95:42: error: enumerator value for 'FIX_KMAP_END' is not an integer constant 95 | #define cpu_possible_mask ((const struct cpumask *)&__cpu_possible_mask) | ^~~~~~~ include/linux/cpumask.h:889:48: note: in expansion of macro 'cpu_possible_mask' 889 | #define num_possible_cpus() cpumask_weight(cpu_possible_mask) | ^~~~~~~~~~~~~~~~~ arch/microblaze/include/asm/fixmap.h:50:55: note: in expansion of macro 'num_possible_cpus' 50 | FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_MAX_IDX * num_possible_cpus()) - 1, | ^~~~~~~~~~~~~~~~~ mm/percpu.c:3030:12: warning: no previous prototype for 'pcpu_embed_first_chunk' [-Wmissing-prototypes] 3030 | int __init pcpu_embed_first_chunk(size_t reserved_size, size_t dyn_size, | ^~~~~~~~~~~~~~~~~~~~~~ -- In file included from include/linux/smp.h:13, from include/linux/lockdep.h:14, from include/linux/rcupdate.h:29, from include/linux/rculist.h:11, from include/linux/pid.h:5, from include/linux/sched.h:14, from include/linux/ratelimit.h:6, from include/linux/dev_printk.h:16, from include/linux/device.h:15, from include/linux/node.h:18, from include/linux/cpu.h:17, from mm/compaction.c:11: >> include/linux/cpumask.h:95:42: error: enumerator value for 'FIX_KMAP_END' is not an integer constant 95 | #define cpu_possible_mask ((const struct cpumask *)&__cpu_possible_mask) | ^~~~~~~ include/linux/cpumask.h:889:48: note: in expansion of macro 'cpu_possible_mask' 889 | #define num_possible_cpus() cpumask_weight(cpu_possible_mask) | ^~~~~~~~~~~~~~~~~ arch/microblaze/include/asm/fixmap.h:50:55: note: in expansion of macro 'num_possible_cpus' 50 | FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_MAX_IDX * num_possible_cpus()) - 1, | ^~~~~~~~~~~~~~~~~ mm/compaction.c:56:27: warning: 'HPAGE_FRAG_CHECK_INTERVAL_MSEC' defined but not used [-Wunused-const-variable=] 56 | static const unsigned int HPAGE_FRAG_CHECK_INTERVAL_MSEC = 500; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- In file included from include/linux/smp.h:13, from include/linux/lockdep.h:14, from include/linux/spinlock.h:63, from include/linux/mmzone.h:8, from include/linux/gfp.h:6, from include/linux/mm.h:10, from mm/page_alloc.c:19: >> include/linux/cpumask.h:95:42: error: enumerator value for 'FIX_KMAP_END' is not an integer constant 95 | #define cpu_possible_mask ((const struct cpumask *)&__cpu_possible_mask) | ^~~~~~~ include/linux/cpumask.h:889:48: note: in expansion of macro 'cpu_possible_mask' 889 | #define num_possible_cpus() cpumask_weight(cpu_possible_mask) | ^~~~~~~~~~~~~~~~~ arch/microblaze/include/asm/fixmap.h:50:55: note: in expansion of macro 'num_possible_cpus' 50 | FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_MAX_IDX * num_possible_cpus()) - 1, | ^~~~~~~~~~~~~~~~~ mm/page_alloc.c:3812:15: warning: no previous prototype for 'should_fail_alloc_page' [-Wmissing-prototypes] 3812 | noinline bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order) | ^~~~~~~~~~~~~~~~~~~~~~ vim +/FIX_KMAP_END +95 include/linux/cpumask.h ^1da177e4c3f41 Linus Torvalds 2005-04-16 49 ^1da177e4c3f41 Linus Torvalds 2005-04-16 50 /* ^1da177e4c3f41 Linus Torvalds 2005-04-16 51 * The following particular system cpumasks and operations manage b3199c025d1646 Rusty Russell 2008-12-30 52 * possible, present, active and online cpus. ^1da177e4c3f41 Linus Torvalds 2005-04-16 53 * b3199c025d1646 Rusty Russell 2008-12-30 54 * cpu_possible_mask- has bit 'cpu' set iff cpu is populatable b3199c025d1646 Rusty Russell 2008-12-30 55 * cpu_present_mask - has bit 'cpu' set iff cpu is populated b3199c025d1646 Rusty Russell 2008-12-30 56 * cpu_online_mask - has bit 'cpu' set iff cpu available to scheduler b3199c025d1646 Rusty Russell 2008-12-30 57 * cpu_active_mask - has bit 'cpu' set iff cpu available to migration ^1da177e4c3f41 Linus Torvalds 2005-04-16 58 * b3199c025d1646 Rusty Russell 2008-12-30 59 * If !CONFIG_HOTPLUG_CPU, present == possible, and active == online. ^1da177e4c3f41 Linus Torvalds 2005-04-16 60 * b3199c025d1646 Rusty Russell 2008-12-30 61 * The cpu_possible_mask is fixed at boot time, as the set of CPU id's b3199c025d1646 Rusty Russell 2008-12-30 62 * that it is possible might ever be plugged in at anytime during the b3199c025d1646 Rusty Russell 2008-12-30 63 * life of that system boot. The cpu_present_mask is dynamic(*), b3199c025d1646 Rusty Russell 2008-12-30 64 * representing which CPUs are currently plugged in. And b3199c025d1646 Rusty Russell 2008-12-30 65 * cpu_online_mask is the dynamic subset of cpu_present_mask, b3199c025d1646 Rusty Russell 2008-12-30 66 * indicating those CPUs available for scheduling. b3199c025d1646 Rusty Russell 2008-12-30 67 * b3199c025d1646 Rusty Russell 2008-12-30 68 * If HOTPLUG is enabled, then cpu_possible_mask is forced to have ^1da177e4c3f41 Linus Torvalds 2005-04-16 69 * all NR_CPUS bits set, otherwise it is just the set of CPUs that ^1da177e4c3f41 Linus Torvalds 2005-04-16 70 * ACPI reports present at boot. ^1da177e4c3f41 Linus Torvalds 2005-04-16 71 * b3199c025d1646 Rusty Russell 2008-12-30 72 * If HOTPLUG is enabled, then cpu_present_mask varies dynamically, ^1da177e4c3f41 Linus Torvalds 2005-04-16 73 * depending on what ACPI reports as currently plugged in, otherwise b3199c025d1646 Rusty Russell 2008-12-30 74 * cpu_present_mask is just a copy of cpu_possible_mask. ^1da177e4c3f41 Linus Torvalds 2005-04-16 75 * b3199c025d1646 Rusty Russell 2008-12-30 76 * (*) Well, cpu_present_mask is dynamic in the hotplug case. If not b3199c025d1646 Rusty Russell 2008-12-30 77 * hotplug, it's a copy of cpu_possible_mask, hence fixed at boot. ^1da177e4c3f41 Linus Torvalds 2005-04-16 78 * ^1da177e4c3f41 Linus Torvalds 2005-04-16 79 * Subtleties: ^1da177e4c3f41 Linus Torvalds 2005-04-16 80 * 1) UP arch's (NR_CPUS == 1, CONFIG_SMP not defined) hardcode ^1da177e4c3f41 Linus Torvalds 2005-04-16 81 * assumption that their single CPU is online. The UP b3199c025d1646 Rusty Russell 2008-12-30 82 * cpu_{online,possible,present}_masks are placebos. Changing them ^1da177e4c3f41 Linus Torvalds 2005-04-16 83 * will have no useful affect on the following num_*_cpus() ^1da177e4c3f41 Linus Torvalds 2005-04-16 84 * and cpu_*() macros in the UP case. This ugliness is a UP ^1da177e4c3f41 Linus Torvalds 2005-04-16 85 * optimization - don't waste any instructions or memory references ^1da177e4c3f41 Linus Torvalds 2005-04-16 86 * asking if you're online or how many CPUs there are if there is ^1da177e4c3f41 Linus Torvalds 2005-04-16 87 * only one CPU. ^1da177e4c3f41 Linus Torvalds 2005-04-16 88 */ ^1da177e4c3f41 Linus Torvalds 2005-04-16 89 4b804c85dc37db Rasmus Villemoes 2016-01-20 90 extern struct cpumask __cpu_possible_mask; 4b804c85dc37db Rasmus Villemoes 2016-01-20 91 extern struct cpumask __cpu_online_mask; 4b804c85dc37db Rasmus Villemoes 2016-01-20 92 extern struct cpumask __cpu_present_mask; 4b804c85dc37db Rasmus Villemoes 2016-01-20 93 extern struct cpumask __cpu_active_mask; e40f74c535b8a0 Peter Zijlstra 2021-01-19 94 extern struct cpumask __cpu_dying_mask; 5aec01b834fd6f Rasmus Villemoes 2016-01-20 @95 #define cpu_possible_mask ((const struct cpumask *)&__cpu_possible_mask) 5aec01b834fd6f Rasmus Villemoes 2016-01-20 96 #define cpu_online_mask ((const struct cpumask *)&__cpu_online_mask) 5aec01b834fd6f Rasmus Villemoes 2016-01-20 97 #define cpu_present_mask ((const struct cpumask *)&__cpu_present_mask) 5aec01b834fd6f Rasmus Villemoes 2016-01-20 98 #define cpu_active_mask ((const struct cpumask *)&__cpu_active_mask) e40f74c535b8a0 Peter Zijlstra 2021-01-19 99 #define cpu_dying_mask ((const struct cpumask *)&__cpu_dying_mask) b3199c025d1646 Rusty Russell 2008-12-30 100 :::::: The code at line 95 was first introduced by commit :::::: 5aec01b834fd6f8ca49d1aeede665b950d0c148e kernel/cpu.c: eliminate cpu_*_mask :::::: TO: Rasmus Villemoes :::::: CC: Linus Torvalds --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============9131666894150246134==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [xilinx-xlnx:xlnx_rebase_v5.15 480/923] include/linux/cpumask.h:95:42: error: enumerator value for 'FIX_KMAP_END' is not an integer constant Date: Fri, 11 Feb 2022 00:00:53 +0800 Message-ID: <202202102317.n7MAKI54-lkp@intel.com> List-Id: --===============9131666894150246134== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15 head: 966124532656bc95d781abf57531e4cd4f962237 commit: 23b920bb9d53a7fcb8e9938f70228ae4d137f244 [480/923] microblaze: Enab= le experimental SMP functionality config: microblaze-randconfig-r023-20220210 (https://download.01.org/0day-c= i/archive/20220210/202202102317.n7MAKI54-lkp(a)intel.com/config) compiler: microblaze-linux-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/Xilinx/linux-xlnx/commit/23b920bb9d53a7fcb8e99= 38f70228ae4d137f244 git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15 git checkout 23b920bb9d53a7fcb8e9938f70228ae4d137f244 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Dmicroblaze SHELL=3D/bin/bash arch/microblaze/kernel/ = mm/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All error/warnings (new ones prefixed by >>): In file included from include/linux/smp.h:13, from include/linux/lockdep.h:14, from include/linux/spinlock.h:63, from include/linux/mmzone.h:8, from include/linux/gfp.h:6, from include/linux/mm.h:10, from arch/microblaze/kernel/ptrace.c:28: >> include/linux/cpumask.h:95:42: error: enumerator value for 'FIX_KMAP_END= ' is not an integer constant 95 | #define cpu_possible_mask ((const struct cpumask *)&__cpu_possib= le_mask) | ^~~~~~~ include/linux/cpumask.h:889:48: note: in expansion of macro 'cpu_possibl= e_mask' 889 | #define num_possible_cpus() cpumask_weight(cpu_possible_mask) | ^~~~~~~~~~~~~~~~~ arch/microblaze/include/asm/fixmap.h:50:55: note: in expansion of macro = 'num_possible_cpus' 50 | FIX_KMAP_END =3D FIX_KMAP_BEGIN + (KM_MAX_IDX * num_poss= ible_cpus()) - 1, | ^~~~~~~~~~= ~~~~~~~ -- >> arch/microblaze/kernel/smp.c:156:6: warning: no previous prototype for '= crash___smp_cross_call' [-Wmissing-prototypes] 156 | void crash___smp_cross_call(void (*crash_ipi_callback)(struct pt= _regs *)) | ^~~~~~~~~~~~~~~~~~~~~~ arch/microblaze/kernel/smp.c: In function 'smp_prepare_cpus': >> arch/microblaze/kernel/smp.c:197:43: warning: parameter 'max_cpus' set b= ut not used [-Wunused-but-set-parameter] 197 | void __init smp_prepare_cpus(unsigned int max_cpus) | ~~~~~~~~~~~~~^~~~~~~~ -- In file included from include/linux/smp.h:13, from include/linux/lockdep.h:14, from include/linux/spinlock.h:63, from include/linux/mmzone.h:8, from include/linux/gfp.h:6, from include/linux/mm.h:10, from mm/vmscan.c:15: >> include/linux/cpumask.h:95:42: error: enumerator value for 'FIX_KMAP_END= ' is not an integer constant 95 | #define cpu_possible_mask ((const struct cpumask *)&__cpu_possib= le_mask) | ^~~~~~~ include/linux/cpumask.h:889:48: note: in expansion of macro 'cpu_possibl= e_mask' 889 | #define num_possible_cpus() cpumask_weight(cpu_possible_mask) | ^~~~~~~~~~~~~~~~~ arch/microblaze/include/asm/fixmap.h:50:55: note: in expansion of macro = 'num_possible_cpus' 50 | FIX_KMAP_END =3D FIX_KMAP_BEGIN + (KM_MAX_IDX * num_poss= ible_cpus()) - 1, | ^~~~~~~~~~= ~~~~~~~ mm/vmscan.c: In function 'demote_page_list': mm/vmscan.c:1340:13: warning: variable 'err' set but not used [-Wunused-= but-set-variable] 1340 | int err; | ^~~ -- In file included from mm/percpu.c:72: >> include/linux/cpumask.h:95:42: error: enumerator value for 'FIX_KMAP_END= ' is not an integer constant 95 | #define cpu_possible_mask ((const struct cpumask *)&__cpu_possib= le_mask) | ^~~~~~~ include/linux/cpumask.h:889:48: note: in expansion of macro 'cpu_possibl= e_mask' 889 | #define num_possible_cpus() cpumask_weight(cpu_possible_mask) | ^~~~~~~~~~~~~~~~~ arch/microblaze/include/asm/fixmap.h:50:55: note: in expansion of macro = 'num_possible_cpus' 50 | FIX_KMAP_END =3D FIX_KMAP_BEGIN + (KM_MAX_IDX * num_poss= ible_cpus()) - 1, | ^~~~~~~~~~= ~~~~~~~ mm/percpu.c:3030:12: warning: no previous prototype for 'pcpu_embed_firs= t_chunk' [-Wmissing-prototypes] 3030 | int __init pcpu_embed_first_chunk(size_t reserved_size, size_t d= yn_size, | ^~~~~~~~~~~~~~~~~~~~~~ -- In file included from include/linux/smp.h:13, from include/linux/lockdep.h:14, from include/linux/rcupdate.h:29, from include/linux/rculist.h:11, from include/linux/pid.h:5, from include/linux/sched.h:14, from include/linux/ratelimit.h:6, from include/linux/dev_printk.h:16, from include/linux/device.h:15, from include/linux/node.h:18, from include/linux/cpu.h:17, from mm/compaction.c:11: >> include/linux/cpumask.h:95:42: error: enumerator value for 'FIX_KMAP_END= ' is not an integer constant 95 | #define cpu_possible_mask ((const struct cpumask *)&__cpu_possib= le_mask) | ^~~~~~~ include/linux/cpumask.h:889:48: note: in expansion of macro 'cpu_possibl= e_mask' 889 | #define num_possible_cpus() cpumask_weight(cpu_possible_mask) | ^~~~~~~~~~~~~~~~~ arch/microblaze/include/asm/fixmap.h:50:55: note: in expansion of macro = 'num_possible_cpus' 50 | FIX_KMAP_END =3D FIX_KMAP_BEGIN + (KM_MAX_IDX * num_poss= ible_cpus()) - 1, | ^~~~~~~~~~= ~~~~~~~ mm/compaction.c:56:27: warning: 'HPAGE_FRAG_CHECK_INTERVAL_MSEC' defined= but not used [-Wunused-const-variable=3D] 56 | static const unsigned int HPAGE_FRAG_CHECK_INTERVAL_MSEC =3D 500; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- In file included from include/linux/smp.h:13, from include/linux/lockdep.h:14, from include/linux/spinlock.h:63, from include/linux/mmzone.h:8, from include/linux/gfp.h:6, from include/linux/mm.h:10, from mm/page_alloc.c:19: >> include/linux/cpumask.h:95:42: error: enumerator value for 'FIX_KMAP_END= ' is not an integer constant 95 | #define cpu_possible_mask ((const struct cpumask *)&__cpu_possib= le_mask) | ^~~~~~~ include/linux/cpumask.h:889:48: note: in expansion of macro 'cpu_possibl= e_mask' 889 | #define num_possible_cpus() cpumask_weight(cpu_possible_mask) | ^~~~~~~~~~~~~~~~~ arch/microblaze/include/asm/fixmap.h:50:55: note: in expansion of macro = 'num_possible_cpus' 50 | FIX_KMAP_END =3D FIX_KMAP_BEGIN + (KM_MAX_IDX * num_poss= ible_cpus()) - 1, | ^~~~~~~~~~= ~~~~~~~ mm/page_alloc.c:3812:15: warning: no previous prototype for 'should_fail= _alloc_page' [-Wmissing-prototypes] 3812 | noinline bool should_fail_alloc_page(gfp_t gfp_mask, unsigned in= t order) | ^~~~~~~~~~~~~~~~~~~~~~ vim +/FIX_KMAP_END +95 include/linux/cpumask.h ^1da177e4c3f41 Linus Torvalds 2005-04-16 49 = ^1da177e4c3f41 Linus Torvalds 2005-04-16 50 /* ^1da177e4c3f41 Linus Torvalds 2005-04-16 51 * The following particula= r system cpumasks and operations manage b3199c025d1646 Rusty Russell 2008-12-30 52 * possible, present, acti= ve and online cpus. ^1da177e4c3f41 Linus Torvalds 2005-04-16 53 * b3199c025d1646 Rusty Russell 2008-12-30 54 * cpu_possible_mask- = has bit 'cpu' set iff cpu is populatable b3199c025d1646 Rusty Russell 2008-12-30 55 * cpu_present_mask - = has bit 'cpu' set iff cpu is populated b3199c025d1646 Rusty Russell 2008-12-30 56 * cpu_online_mask - = has bit 'cpu' set iff cpu available to scheduler b3199c025d1646 Rusty Russell 2008-12-30 57 * cpu_active_mask - = has bit 'cpu' set iff cpu available to migration ^1da177e4c3f41 Linus Torvalds 2005-04-16 58 * b3199c025d1646 Rusty Russell 2008-12-30 59 * If !CONFIG_HOTPLUG_CPU= , present =3D=3D possible, and active =3D=3D online. ^1da177e4c3f41 Linus Torvalds 2005-04-16 60 * b3199c025d1646 Rusty Russell 2008-12-30 61 * The cpu_possible_mask = is fixed at boot time, as the set of CPU id's b3199c025d1646 Rusty Russell 2008-12-30 62 * that it is possible mi= ght ever be plugged in at anytime during the b3199c025d1646 Rusty Russell 2008-12-30 63 * life of that system bo= ot. The cpu_present_mask is dynamic(*), b3199c025d1646 Rusty Russell 2008-12-30 64 * representing which CPU= s are currently plugged in. And b3199c025d1646 Rusty Russell 2008-12-30 65 * cpu_online_mask is the= dynamic subset of cpu_present_mask, b3199c025d1646 Rusty Russell 2008-12-30 66 * indicating those CPUs = available for scheduling. b3199c025d1646 Rusty Russell 2008-12-30 67 * b3199c025d1646 Rusty Russell 2008-12-30 68 * If HOTPLUG is enabled,= then cpu_possible_mask is forced to have ^1da177e4c3f41 Linus Torvalds 2005-04-16 69 * all NR_CPUS bits set, = otherwise it is just the set of CPUs that ^1da177e4c3f41 Linus Torvalds 2005-04-16 70 * ACPI reports present a= t boot. ^1da177e4c3f41 Linus Torvalds 2005-04-16 71 * b3199c025d1646 Rusty Russell 2008-12-30 72 * If HOTPLUG is enabled,= then cpu_present_mask varies dynamically, ^1da177e4c3f41 Linus Torvalds 2005-04-16 73 * depending on what ACPI= reports as currently plugged in, otherwise b3199c025d1646 Rusty Russell 2008-12-30 74 * cpu_present_mask is ju= st a copy of cpu_possible_mask. ^1da177e4c3f41 Linus Torvalds 2005-04-16 75 * b3199c025d1646 Rusty Russell 2008-12-30 76 * (*) Well, cpu_present_= mask is dynamic in the hotplug case. If not b3199c025d1646 Rusty Russell 2008-12-30 77 * hotplug, it's a co= py of cpu_possible_mask, hence fixed at boot. ^1da177e4c3f41 Linus Torvalds 2005-04-16 78 * ^1da177e4c3f41 Linus Torvalds 2005-04-16 79 * Subtleties: ^1da177e4c3f41 Linus Torvalds 2005-04-16 80 * 1) UP arch's (NR_CPUS = =3D=3D 1, CONFIG_SMP not defined) hardcode ^1da177e4c3f41 Linus Torvalds 2005-04-16 81 * assumption that thei= r single CPU is online. The UP b3199c025d1646 Rusty Russell 2008-12-30 82 * cpu_{online,possible= ,present}_masks are placebos. Changing them ^1da177e4c3f41 Linus Torvalds 2005-04-16 83 * will have no useful = affect on the following num_*_cpus() ^1da177e4c3f41 Linus Torvalds 2005-04-16 84 * and cpu_*() macros i= n the UP case. This ugliness is a UP ^1da177e4c3f41 Linus Torvalds 2005-04-16 85 * optimization - don't= waste any instructions or memory references ^1da177e4c3f41 Linus Torvalds 2005-04-16 86 * asking if you're onl= ine or how many CPUs there are if there is ^1da177e4c3f41 Linus Torvalds 2005-04-16 87 * only one CPU. ^1da177e4c3f41 Linus Torvalds 2005-04-16 88 */ ^1da177e4c3f41 Linus Torvalds 2005-04-16 89 = 4b804c85dc37db Rasmus Villemoes 2016-01-20 90 extern struct cpumask __cp= u_possible_mask; 4b804c85dc37db Rasmus Villemoes 2016-01-20 91 extern struct cpumask __cp= u_online_mask; 4b804c85dc37db Rasmus Villemoes 2016-01-20 92 extern struct cpumask __cp= u_present_mask; 4b804c85dc37db Rasmus Villemoes 2016-01-20 93 extern struct cpumask __cp= u_active_mask; e40f74c535b8a0 Peter Zijlstra 2021-01-19 94 extern struct cpumask __cp= u_dying_mask; 5aec01b834fd6f Rasmus Villemoes 2016-01-20 @95 #define cpu_possible_mask = ((const struct cpumask *)&__cpu_possible_mask) 5aec01b834fd6f Rasmus Villemoes 2016-01-20 96 #define cpu_online_mask = ((const struct cpumask *)&__cpu_online_mask) 5aec01b834fd6f Rasmus Villemoes 2016-01-20 97 #define cpu_present_mask = ((const struct cpumask *)&__cpu_present_mask) 5aec01b834fd6f Rasmus Villemoes 2016-01-20 98 #define cpu_active_mask = ((const struct cpumask *)&__cpu_active_mask) e40f74c535b8a0 Peter Zijlstra 2021-01-19 99 #define cpu_dying_mask = ((const struct cpumask *)&__cpu_dying_mask) b3199c025d1646 Rusty Russell 2008-12-30 100 = :::::: The code at line 95 was first introduced by commit :::::: 5aec01b834fd6f8ca49d1aeede665b950d0c148e kernel/cpu.c: eliminate cpu= _*_mask :::::: TO: Rasmus Villemoes :::::: CC: Linus Torvalds --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============9131666894150246134==--