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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A00B7CD11DF for ; Thu, 28 Mar 2024 19:55:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DBA9D6B0089; Thu, 28 Mar 2024 15:55:28 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D6AC36B009B; Thu, 28 Mar 2024 15:55:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C0B816B009D; Thu, 28 Mar 2024 15:55:28 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 9986A6B0089 for ; Thu, 28 Mar 2024 15:55:28 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 431521606F8 for ; Thu, 28 Mar 2024 19:55:28 +0000 (UTC) X-FDA: 81947502336.15.D74D4A5 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by imf12.hostedemail.com (Postfix) with ESMTP id EE00E40019 for ; Thu, 28 Mar 2024 19:55:24 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="NA//gjOa"; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf12.hostedemail.com: domain of lkp@intel.com designates 192.198.163.13 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1711655726; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=JOvlqfBVwYrJzr/AvJFlLjrI2wmvjh8ShyWJg0l6afw=; b=wXRBnwKGu6aqIbJ1QsahUSfuufjHdOY5YW087RyVkvULT4PZmVmBOicctJpn4DD/BdG1Y/ RUblpEWj2mC8gtjeE1qTpk4tAz6OTCmB5a8PXwmfI59oIXFu3yXf5UWE7exfn9t7PxWCcV tG7wIU4Hh2OhIkKYfIld2n0jB0WZJ5k= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="NA//gjOa"; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf12.hostedemail.com: domain of lkp@intel.com designates 192.198.163.13 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1711655726; a=rsa-sha256; cv=none; b=rYmHeh1cfQ+qn9Y4OdUn5g/CwFXFtzCoCtXAg+/kqok7gzm5yWmdMtU7PJWTyX39Q8nP9c /clkbbmIxDUS20r8jQGSNCxdxO7ibe4vbLQWiSFrHbn/oEPFqvz1Zofw9DUIqXStLQlkA0 v68mHAC1Et8xkjKhAlCD8erINoBay6M= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711655725; x=1743191725; h=date:from:to:cc:subject:message-id:mime-version; bh=aIbjoPn+YayloynyGr6U+Lk9tY3NvaE0kTwRGeavl04=; b=NA//gjOaRApI/FiGB1GyxhNjN7uN9mi4bvaIY3opZelcrE9VM1CYyP9U l4upb0dBzrIsv5Lq6DJKJMxn4J8wWTXCAYOYhdZr9iBLR+OR4AyOesmOZ /tfbok/V3MoAkIIlwsF7o6moQhKLccgNbLJCY8U/LmOeYcKXujL2JwYkG YawBJRiVxYFAp+tZOlmwPsGINXH6gvxWp7PZ+qo9NbIZep2n93Y8srh8Q xts72JbFt/s7K6hN4g8q2c5KIZ6d1iGqOTbXPrRSDp95uz5ciF1tIkLqw szNs315c9qeryvx1KohjAlua3JJehNaI9wklyR39a+e4vEaq4jgwN7jxQ Q==; X-CSE-ConnectionGUID: McLlKKEZTfeGJM+qodi8QA== X-CSE-MsgGUID: /dYfY6RuTZGhVcIRt/Tj9g== X-IronPort-AV: E=McAfee;i="6600,9927,11027"; a="9791195" X-IronPort-AV: E=Sophos;i="6.07,162,1708416000"; d="scan'208";a="9791195" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2024 12:55:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,162,1708416000"; d="scan'208";a="21263354" Received: from lkp-server01.sh.intel.com (HELO be39aa325d23) ([10.239.97.150]) by fmviesa003.fm.intel.com with ESMTP; 28 Mar 2024 12:55:21 -0700 Received: from kbuild by be39aa325d23 with local (Exim 4.96) (envelope-from ) id 1rpvqI-0002UF-2o; Thu, 28 Mar 2024 19:55:18 +0000 Date: Fri, 29 Mar 2024 03:54:58 +0800 From: kernel test robot To: Suren Baghdasaryan Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Andrew Morton , Kent Overstreet , Kees Cook Subject: [linux-next:master 1076/1266] include/linux/alloc_tag.h:43:2: error: "Memory allocation profiling is incompatible with ARCH_NEEDS_WEAK_PER_CPU" Message-ID: <202403290334.USWrYrMw-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: EE00E40019 X-Stat-Signature: j8ywkc79n9i11w5mpmsq7fhhc89ujfd3 X-Rspam-User: X-HE-Tag: 1711655724-423470 X-HE-Meta: U2FsdGVkX1/0mPFnHc9C/ySn3AAECZEgS/84slibJvSNpxI4F2mRPmKKczQ0ek8OBtaRhXLNda0IhAgYdhdltZoNfAUSxulbuZKK/FcRi/NmG69SgrOHvKFNqgCxcWrBjIK3TMKJKNE2muFMnG5SMpeNwY7TqXM0QdsT0E4alea9eUsBeFEMTSbCvHJwF1bCmUphiVocRsbz2/oKNMmQiw8LC7bOsuITTVnWnQhJR2t0JDcEJdtqMlpy9GKrWK4eUEDKIpjxR5pO1W1YiHk2fmEYzW7sCilL3R8wNeh3MpbHRQxXvIfvQHew68TpWGGAvY165Aa5D2othU1yPEYO2F5yjoxGT3Q6WgGWwHCsJzd7J+wbszznhoFxkDEAm+Bf6kAOXI48+IEd9TgKeSk34HX5nJxU0CgJJ4tbAPywZyTPU9JwVccUNgOAG4bdE/AY5DPyHNmUN6vHcASdw/bMH+DAyHrIaMUARWKy4xCj4/sDlT4vyA6z/wn64+X4jaHyo5Bx7IchzBPji32CR78puwwd724xNkDgHeM88mMNcVFioLuI+szSycuGPytyOuO1AQQegikEAquFh8IAk7O4gDfXEuwsaV3gJBo9yGzKzUuURqvD1vr+lgyoZZkExpScidL32d0w5SUviCszjpc/COuLRiJEj1dVfJJatMqYL7Ksuk+iYxYjP0GfEU7Vr9sh/BJLnrSw/dqTEa5qRym/Vr6xAB4gR3VOE4zwL+z5d4HjFNzVapqovyX96ehax18oGPjV4bXj+mZ61vxRBAfK5DSpwFE7qFokc10mXnh9TndrOcvUnqWRwBH+Qg9TN/tKFymMuTJWJ/lBU4XFK44cHxRh/A4Nt6bf58tgyq1+EOwVD7CqkrKkcKTzGya21AftknjaH+vt2fJKLtEaGNP4WnRGdxRlmekKG7yGGpHOcI3hV7j3PoQJyOWeBZrMC2uVqSGbG05N0x4hyLfo8Wh G8FAGuX0 qqnLTUatEUgH1+5pg0kuTi4qgFi1QIqgdUL0gDkHoPn8PrZfJq7xzhTz43uaQ6kS4U9pzXWUiXNFbPMU/QvXdYd2zrncbWRG1gwDi131U6R5M/5RbKpbAWKtn3y1myFQvWkFUQGkdgYMInZ6+CUs36GOmnbDCROOe4Fy99lPcrELvsZ4bVwNI51hSBsYO3aZNdA8CK7CsT5pbGrRRjXQU8IGTrQYIY8fmsdrE9Kx7qYjCg/MiUo+AmoskizKglHitqZt1u08VqQsHXzPRsWIllnX/7KTkvSqzKMepcXmuxhI/8yLexiBnU9QvZR+kG4NKg3IBMV4BN28mfmSH2YVYzQWHOAYjo0WNh3pN0xzEFS7OX3GL5USdpKNvulowo4t2FuCS7/pNfbwxMDcMGSa9Q5NKU+qE5feP9TepVm8rPo8Z3w2uq6d8m2ihXgQz5+O8Ci7Cf6S47XT69VoLWQ5wVHxO9w== 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: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: a6bd6c9333397f5a0e2667d4d82fef8c970108f2 commit: ce3297eef13a5e5c03f99dc81fa4948340938b36 [1076/1266] mm: enable page allocation tagging config: s390-randconfig-002-20240328 (https://download.01.org/0day-ci/archive/20240329/202403290334.USWrYrMw-lkp@intel.com/config) compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 23de3862dce582ce91c1aa914467d982cb1a73b4) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240329/202403290334.USWrYrMw-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202403290334.USWrYrMw-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from drivers/input/rmi4/rmi_spi.c:8: In file included from include/linux/module.h:17: In file included from include/linux/kmod.h:9: In file included from include/linux/umh.h:4: In file included from include/linux/gfp.h:9: >> include/linux/alloc_tag.h:43:2: error: "Memory allocation profiling is incompatible with ARCH_NEEDS_WEAK_PER_CPU" 43 | #error "Memory allocation profiling is incompatible with ARCH_NEEDS_WEAK_PER_CPU" | ^ In file included from drivers/input/rmi4/rmi_spi.c:8: In file included from include/linux/module.h:17: In file included from include/linux/kmod.h:9: In file included from include/linux/umh.h:4: >> include/linux/gfp.h:295:9: error: '__section__' attribute only applies to functions, global variables, Objective-C methods, and Objective-C properties 295 | return __folio_alloc_node(gfp, order, numa_node_id()); | ^ include/linux/gfp.h:258:35: note: expanded from macro '__folio_alloc_node' 258 | #define __folio_alloc_node(...) alloc_hooks(__folio_alloc_node_noprof(__VA_ARGS__)) | ^ include/linux/alloc_tag.h:155:2: note: expanded from macro 'alloc_hooks' 155 | DEFINE_ALLOC_TAG(_alloc_tag); \ | ^ include/linux/alloc_tag.h:47:9: note: expanded from macro 'DEFINE_ALLOC_TAG' 47 | static DEFINE_PER_CPU(struct alloc_tag_counters, _alloc_tag_cntr); \ | ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/percpu-defs.h:93:2: note: expanded from macro 'DEFINE_PER_CPU_SECTION' 93 | __PCPU_DUMMY_ATTRS char __pcpu_unique_##name; \ | ^ include/linux/percpu-defs.h:54:2: note: expanded from macro '__PCPU_DUMMY_ATTRS' 54 | __section(".discard") __attribute__((unused)) | ^ include/linux/compiler_attributes.h:334:56: note: expanded from macro '__section' 334 | #define __section(section) __attribute__((__section__(section))) | ^ In file included from drivers/input/rmi4/rmi_spi.c:8: In file included from include/linux/module.h:17: In file included from include/linux/kmod.h:9: In file included from include/linux/umh.h:4: >> include/linux/gfp.h:295:9: error: non-extern declaration of '__pcpu_unique__alloc_tag_cntr' follows extern declaration include/linux/gfp.h:258:35: note: expanded from macro '__folio_alloc_node' 258 | #define __folio_alloc_node(...) alloc_hooks(__folio_alloc_node_noprof(__VA_ARGS__)) | ^ include/linux/alloc_tag.h:155:2: note: expanded from macro 'alloc_hooks' 155 | DEFINE_ALLOC_TAG(_alloc_tag); \ | ^ include/linux/alloc_tag.h:47:9: note: expanded from macro 'DEFINE_ALLOC_TAG' 47 | static DEFINE_PER_CPU(struct alloc_tag_counters, _alloc_tag_cntr); \ | ^ include/linux/percpu-defs.h:115:2: note: expanded from macro 'DEFINE_PER_CPU' 115 | DEFINE_PER_CPU_SECTION(type, name, "") | ^ include/linux/percpu-defs.h:93:26: note: expanded from macro 'DEFINE_PER_CPU_SECTION' 93 | __PCPU_DUMMY_ATTRS char __pcpu_unique_##name; \ | ^ :101:1: note: expanded from here 101 | __pcpu_unique__alloc_tag_cntr | ^ include/linux/gfp.h:295:9: note: previous declaration is here include/linux/gfp.h:258:35: note: expanded from macro '__folio_alloc_node' 258 | #define __folio_alloc_node(...) alloc_hooks(__folio_alloc_node_noprof(__VA_ARGS__)) | ^ include/linux/alloc_tag.h:155:2: note: expanded from macro 'alloc_hooks' 155 | DEFINE_ALLOC_TAG(_alloc_tag); \ | ^ include/linux/alloc_tag.h:47:9: note: expanded from macro 'DEFINE_ALLOC_TAG' 47 | static DEFINE_PER_CPU(struct alloc_tag_counters, _alloc_tag_cntr); \ | ^ include/linux/percpu-defs.h:115:2: note: expanded from macro 'DEFINE_PER_CPU' 115 | DEFINE_PER_CPU_SECTION(type, name, "") | ^ include/linux/percpu-defs.h:92:33: note: expanded from macro 'DEFINE_PER_CPU_SECTION' 92 | extern __PCPU_DUMMY_ATTRS char __pcpu_unique_##name; \ | ^ :100:1: note: expanded from here 100 | __pcpu_unique__alloc_tag_cntr | ^ In file included from drivers/input/rmi4/rmi_spi.c:8: In file included from include/linux/module.h:17: In file included from include/linux/kmod.h:9: In file included from include/linux/umh.h:4: >> include/linux/gfp.h:295:9: error: 'section' attribute only applies to functions, global variables, Objective-C methods, and Objective-C properties 295 | return __folio_alloc_node(gfp, order, numa_node_id()); | ^ include/linux/gfp.h:258:35: note: expanded from macro '__folio_alloc_node' 258 | #define __folio_alloc_node(...) alloc_hooks(__folio_alloc_node_noprof(__VA_ARGS__)) | ^ include/linux/alloc_tag.h:155:2: note: expanded from macro 'alloc_hooks' 155 | DEFINE_ALLOC_TAG(_alloc_tag); \ | ^ include/linux/alloc_tag.h:47:9: note: expanded from macro 'DEFINE_ALLOC_TAG' 47 | static DEFINE_PER_CPU(struct alloc_tag_counters, _alloc_tag_cntr); \ | ^ include/linux/percpu-defs.h:115:2: note: expanded from macro 'DEFINE_PER_CPU' 115 | DEFINE_PER_CPU_SECTION(type, name, "") | ^ include/linux/percpu-defs.h:95:2: note: expanded from macro 'DEFINE_PER_CPU_SECTION' 95 | __PCPU_ATTRS(sec) __weak __typeof__(type) name | ^ include/linux/percpu-defs.h:50:26: note: expanded from macro '__PCPU_ATTRS' 50 | __percpu __attribute__((section(PER_CPU_BASE_SECTION sec))) \ | ^ In file included from drivers/input/rmi4/rmi_spi.c:8: In file included from include/linux/module.h:17: In file included from include/linux/kmod.h:9: In file included from include/linux/umh.h:4: >> include/linux/gfp.h:295:9: error: non-extern declaration of '_alloc_tag_cntr' follows extern declaration include/linux/gfp.h:258:35: note: expanded from macro '__folio_alloc_node' 258 | #define __folio_alloc_node(...) alloc_hooks(__folio_alloc_node_noprof(__VA_ARGS__)) | ^ include/linux/alloc_tag.h:155:2: note: expanded from macro 'alloc_hooks' 155 | DEFINE_ALLOC_TAG(_alloc_tag); \ | ^ include/linux/alloc_tag.h:47:51: note: expanded from macro 'DEFINE_ALLOC_TAG' 47 | static DEFINE_PER_CPU(struct alloc_tag_counters, _alloc_tag_cntr); \ | ^ include/linux/gfp.h:295:9: note: previous declaration is here include/linux/gfp.h:258:35: note: expanded from macro '__folio_alloc_node' 258 | #define __folio_alloc_node(...) alloc_hooks(__folio_alloc_node_noprof(__VA_ARGS__)) | ^ include/linux/alloc_tag.h:155:2: note: expanded from macro 'alloc_hooks' 155 | DEFINE_ALLOC_TAG(_alloc_tag); \ | ^ include/linux/alloc_tag.h:47:51: note: expanded from macro 'DEFINE_ALLOC_TAG' 47 | static DEFINE_PER_CPU(struct alloc_tag_counters, _alloc_tag_cntr); \ | ^ In file included from drivers/input/rmi4/rmi_spi.c:8: In file included from include/linux/module.h:17: In file included from include/linux/kmod.h:9: In file included from include/linux/umh.h:4: >> include/linux/gfp.h:295:9: error: weak declaration cannot have internal linkage 295 | return __folio_alloc_node(gfp, order, numa_node_id()); | ^ include/linux/gfp.h:258:35: note: expanded from macro '__folio_alloc_node' 258 | #define __folio_alloc_node(...) alloc_hooks(__folio_alloc_node_noprof(__VA_ARGS__)) | ^ include/linux/alloc_tag.h:155:2: note: expanded from macro 'alloc_hooks' 155 | DEFINE_ALLOC_TAG(_alloc_tag); \ | ^ include/linux/alloc_tag.h:47:9: note: expanded from macro 'DEFINE_ALLOC_TAG' 47 | static DEFINE_PER_CPU(struct alloc_tag_counters, _alloc_tag_cntr); \ | ^ include/linux/percpu-defs.h:115:2: note: expanded from macro 'DEFINE_PER_CPU' 115 | DEFINE_PER_CPU_SECTION(type, name, "") | ^ include/linux/percpu-defs.h:95:20: note: expanded from macro 'DEFINE_PER_CPU_SECTION' 95 | __PCPU_ATTRS(sec) __weak __typeof__(type) name | ^ include/linux/compiler_attributes.h:403:56: note: expanded from macro '__weak' 403 | #define __weak __attribute__((__weak__)) | ^ In file included from drivers/input/rmi4/rmi_spi.c:8: In file included from include/linux/module.h:19: In file included from include/linux/elf.h:6: In file included from arch/s390/include/asm/elf.h:160: In file included from include/linux/compat.h:17: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:98:11: warning: array index 3 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 98 | return (set->sig[3] | set->sig[2] | | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from drivers/input/rmi4/rmi_spi.c:8: In file included from include/linux/module.h:19: In file included from include/linux/elf.h:6: In file included from arch/s390/include/asm/elf.h:160: In file included from include/linux/compat.h:17: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:98:25: warning: array index 2 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 98 | return (set->sig[3] | set->sig[2] | | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from drivers/input/rmi4/rmi_spi.c:8: In file included from include/linux/module.h:19: In file included from include/linux/elf.h:6: In file included from arch/s390/include/asm/elf.h:160: In file included from include/linux/compat.h:17: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:99:4: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 99 | set->sig[1] | set->sig[0]) == 0; | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from drivers/input/rmi4/rmi_spi.c:8: In file included from include/linux/module.h:19: In file included from include/linux/elf.h:6: In file included from arch/s390/include/asm/elf.h:160: In file included from include/linux/compat.h:17: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:101:11: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds] 101 | return (set->sig[1] | set->sig[0]) == 0; | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from drivers/input/rmi4/rmi_spi.c:8: In file included from include/linux/module.h:19: In file included from include/linux/elf.h:6: In file included from arch/s390/include/asm/elf.h:160: In file included from include/linux/compat.h:17: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:114:11: warning: array index 3 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] 114 | return (set1->sig[3] == set2->sig[3]) && | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from drivers/input/rmi4/rmi_spi.c:8: In file included from include/linux/module.h:19: In file included from include/linux/elf.h:6: In file included from arch/s390/include/asm/elf.h:160: In file included from include/linux/compat.h:17: -- In file included from include/linux/elf.h:6: In file included from arch/s390/include/asm/elf.h:160: include/linux/compat.h:454:10: warning: array index 7 is past the end of the array (that has type 'compat_sigset_word[2]' (aka 'unsigned int[2]')) [-Warray-bounds] 454 | case 4: v.sig[7] = (set->sig[3] >> 32); v.sig[6] = set->sig[3]; | ^ ~ include/linux/compat.h:130:2: note: array 'sig' declared here 130 | compat_sigset_word sig[_COMPAT_NSIG_WORDS]; | ^ include/linux/compat.h:454:42: warning: array index 6 is past the end of the array (that has type 'compat_sigset_word[2]' (aka 'unsigned int[2]')) [-Warray-bounds] 454 | case 4: v.sig[7] = (set->sig[3] >> 32); v.sig[6] = set->sig[3]; | ^ ~ include/linux/compat.h:130:2: note: array 'sig' declared here 130 | compat_sigset_word sig[_COMPAT_NSIG_WORDS]; | ^ include/linux/compat.h:454:53: warning: array index 3 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] 454 | case 4: v.sig[7] = (set->sig[3] >> 32); v.sig[6] = set->sig[3]; | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from drivers/input/rmi4/rmi_spi.c:8: In file included from include/linux/module.h:19: In file included from include/linux/elf.h:6: In file included from arch/s390/include/asm/elf.h:160: include/linux/compat.h:456:22: warning: array index 2 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] 456 | case 3: v.sig[5] = (set->sig[2] >> 32); v.sig[4] = set->sig[2]; | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from drivers/input/rmi4/rmi_spi.c:8: In file included from include/linux/module.h:19: In file included from include/linux/elf.h:6: In file included from arch/s390/include/asm/elf.h:160: include/linux/compat.h:456:10: warning: array index 5 is past the end of the array (that has type 'compat_sigset_word[2]' (aka 'unsigned int[2]')) [-Warray-bounds] 456 | case 3: v.sig[5] = (set->sig[2] >> 32); v.sig[4] = set->sig[2]; | ^ ~ include/linux/compat.h:130:2: note: array 'sig' declared here 130 | compat_sigset_word sig[_COMPAT_NSIG_WORDS]; | ^ include/linux/compat.h:456:42: warning: array index 4 is past the end of the array (that has type 'compat_sigset_word[2]' (aka 'unsigned int[2]')) [-Warray-bounds] 456 | case 3: v.sig[5] = (set->sig[2] >> 32); v.sig[4] = set->sig[2]; | ^ ~ include/linux/compat.h:130:2: note: array 'sig' declared here 130 | compat_sigset_word sig[_COMPAT_NSIG_WORDS]; | ^ include/linux/compat.h:456:53: warning: array index 2 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] 456 | case 3: v.sig[5] = (set->sig[2] >> 32); v.sig[4] = set->sig[2]; | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from drivers/input/rmi4/rmi_spi.c:8: In file included from include/linux/module.h:19: In file included from include/linux/elf.h:6: In file included from arch/s390/include/asm/elf.h:160: include/linux/compat.h:458:22: warning: array index 1 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] 458 | case 2: v.sig[3] = (set->sig[1] >> 32); v.sig[2] = set->sig[1]; | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from drivers/input/rmi4/rmi_spi.c:8: In file included from include/linux/module.h:19: In file included from include/linux/elf.h:6: In file included from arch/s390/include/asm/elf.h:160: include/linux/compat.h:458:10: warning: array index 3 is past the end of the array (that has type 'compat_sigset_word[2]' (aka 'unsigned int[2]')) [-Warray-bounds] 458 | case 2: v.sig[3] = (set->sig[1] >> 32); v.sig[2] = set->sig[1]; | ^ ~ include/linux/compat.h:130:2: note: array 'sig' declared here 130 | compat_sigset_word sig[_COMPAT_NSIG_WORDS]; | ^ include/linux/compat.h:458:42: warning: array index 2 is past the end of the array (that has type 'compat_sigset_word[2]' (aka 'unsigned int[2]')) [-Warray-bounds] 458 | case 2: v.sig[3] = (set->sig[1] >> 32); v.sig[2] = set->sig[1]; | ^ ~ include/linux/compat.h:130:2: note: array 'sig' declared here 130 | compat_sigset_word sig[_COMPAT_NSIG_WORDS]; | ^ include/linux/compat.h:458:53: warning: array index 1 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds] 458 | case 2: v.sig[3] = (set->sig[1] >> 32); v.sig[2] = set->sig[1]; | ^ ~ arch/s390/include/asm/signal.h:22:9: note: array 'sig' declared here 22 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from drivers/input/rmi4/rmi_spi.c:8: In file included from include/linux/module.h:19: In file included from include/linux/elf.h:6: In file included from arch/s390/include/asm/elf.h:173: In file included from arch/s390/include/asm/mmu_context.h:11: In file included from arch/s390/include/asm/pgalloc.h:18: In file included from include/linux/mm.h:2208: include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ In file included from drivers/input/rmi4/rmi_spi.c:8: In file included from include/linux/module.h:19: In file included from include/linux/elf.h:6: In file included from arch/s390/include/asm/elf.h:173: In file included from arch/s390/include/asm/mmu_context.h:11: In file included from arch/s390/include/asm/pgalloc.h:18: >> include/linux/mm.h:2862:22: error: '__section__' attribute only applies to functions, global variables, Objective-C methods, and Objective-C properties 2862 | struct page *page = alloc_pages(gfp | __GFP_COMP, order); | ^ include/linux/gfp.h:301:28: note: expanded from macro 'alloc_pages' 301 | #define alloc_pages(...) alloc_hooks(alloc_pages_noprof(__VA_ARGS__)) | ^ include/linux/alloc_tag.h:155:2: note: expanded from macro 'alloc_hooks' 155 | DEFINE_ALLOC_TAG(_alloc_tag); \ | ^ include/linux/alloc_tag.h:47:9: note: expanded from macro 'DEFINE_ALLOC_TAG' 47 | static DEFINE_PER_CPU(struct alloc_tag_counters, _alloc_tag_cntr); \ | ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/percpu-defs.h:93:2: note: expanded from macro 'DEFINE_PER_CPU_SECTION' 93 | __PCPU_DUMMY_ATTRS char __pcpu_unique_##name; \ | ^ include/linux/percpu-defs.h:54:2: note: expanded from macro '__PCPU_DUMMY_ATTRS' 54 | __section(".discard") __attribute__((unused)) | ^ include/linux/compiler_attributes.h:334:56: note: expanded from macro '__section' 334 | #define __section(section) __attribute__((__section__(section))) | ^ In file included from drivers/input/rmi4/rmi_spi.c:8: In file included from include/linux/module.h:19: In file included from include/linux/elf.h:6: In file included from arch/s390/include/asm/elf.h:173: In file included from arch/s390/include/asm/mmu_context.h:11: In file included from arch/s390/include/asm/pgalloc.h:18: >> include/linux/mm.h:2862:22: error: non-extern declaration of '__pcpu_unique__alloc_tag_cntr' follows extern declaration include/linux/gfp.h:301:28: note: expanded from macro 'alloc_pages' 301 | #define alloc_pages(...) alloc_hooks(alloc_pages_noprof(__VA_ARGS__)) | ^ include/linux/alloc_tag.h:155:2: note: expanded from macro 'alloc_hooks' 155 | DEFINE_ALLOC_TAG(_alloc_tag); \ | ^ include/linux/alloc_tag.h:47:9: note: expanded from macro 'DEFINE_ALLOC_TAG' 47 | static DEFINE_PER_CPU(struct alloc_tag_counters, _alloc_tag_cntr); \ | ^ include/linux/percpu-defs.h:115:2: note: expanded from macro 'DEFINE_PER_CPU' 115 | DEFINE_PER_CPU_SECTION(type, name, "") | ^ include/linux/percpu-defs.h:93:26: note: expanded from macro 'DEFINE_PER_CPU_SECTION' 93 | __PCPU_DUMMY_ATTRS char __pcpu_unique_##name; \ | ^ :67:1: note: expanded from here 67 | __pcpu_unique__alloc_tag_cntr | ^ include/linux/mm.h:2862:22: note: previous declaration is here include/linux/gfp.h:301:28: note: expanded from macro 'alloc_pages' 301 | #define alloc_pages(...) alloc_hooks(alloc_pages_noprof(__VA_ARGS__)) | ^ include/linux/alloc_tag.h:155:2: note: expanded from macro 'alloc_hooks' 155 | DEFINE_ALLOC_TAG(_alloc_tag); \ | ^ include/linux/alloc_tag.h:47:9: note: expanded from macro 'DEFINE_ALLOC_TAG' 47 | static DEFINE_PER_CPU(struct alloc_tag_counters, _alloc_tag_cntr); \ | ^ include/linux/percpu-defs.h:115:2: note: expanded from macro 'DEFINE_PER_CPU' 115 | DEFINE_PER_CPU_SECTION(type, name, "") | ^ include/linux/percpu-defs.h:92:33: note: expanded from macro 'DEFINE_PER_CPU_SECTION' 92 | extern __PCPU_DUMMY_ATTRS char __pcpu_unique_##name; \ | ^ :66:1: note: expanded from here 66 | __pcpu_unique__alloc_tag_cntr | ^ In file included from drivers/input/rmi4/rmi_spi.c:8: In file included from include/linux/module.h:19: In file included from include/linux/elf.h:6: In file included from arch/s390/include/asm/elf.h:173: In file included from arch/s390/include/asm/mmu_context.h:11: In file included from arch/s390/include/asm/pgalloc.h:18: >> include/linux/mm.h:2862:22: error: 'section' attribute only applies to functions, global variables, Objective-C methods, and Objective-C properties 2862 | struct page *page = alloc_pages(gfp | __GFP_COMP, order); | ^ include/linux/gfp.h:301:28: note: expanded from macro 'alloc_pages' 301 | #define alloc_pages(...) alloc_hooks(alloc_pages_noprof(__VA_ARGS__)) | ^ include/linux/alloc_tag.h:155:2: note: expanded from macro 'alloc_hooks' 155 | DEFINE_ALLOC_TAG(_alloc_tag); \ | ^ include/linux/alloc_tag.h:47:9: note: expanded from macro 'DEFINE_ALLOC_TAG' 47 | static DEFINE_PER_CPU(struct alloc_tag_counters, _alloc_tag_cntr); \ | ^ include/linux/percpu-defs.h:115:2: note: expanded from macro 'DEFINE_PER_CPU' 115 | DEFINE_PER_CPU_SECTION(type, name, "") | ^ include/linux/percpu-defs.h:95:2: note: expanded from macro 'DEFINE_PER_CPU_SECTION' 95 | __PCPU_ATTRS(sec) __weak __typeof__(type) name | ^ include/linux/percpu-defs.h:50:26: note: expanded from macro '__PCPU_ATTRS' 50 | __percpu __attribute__((section(PER_CPU_BASE_SECTION sec))) \ | ^ In file included from drivers/input/rmi4/rmi_spi.c:8: In file included from include/linux/module.h:19: In file included from include/linux/elf.h:6: In file included from arch/s390/include/asm/elf.h:173: In file included from arch/s390/include/asm/mmu_context.h:11: In file included from arch/s390/include/asm/pgalloc.h:18: >> include/linux/mm.h:2862:22: error: non-extern declaration of '_alloc_tag_cntr' follows extern declaration include/linux/gfp.h:301:28: note: expanded from macro 'alloc_pages' 301 | #define alloc_pages(...) alloc_hooks(alloc_pages_noprof(__VA_ARGS__)) | ^ include/linux/alloc_tag.h:155:2: note: expanded from macro 'alloc_hooks' 155 | DEFINE_ALLOC_TAG(_alloc_tag); \ | ^ include/linux/alloc_tag.h:47:51: note: expanded from macro 'DEFINE_ALLOC_TAG' 47 | static DEFINE_PER_CPU(struct alloc_tag_counters, _alloc_tag_cntr); \ | ^ include/linux/mm.h:2862:22: note: previous declaration is here include/linux/gfp.h:301:28: note: expanded from macro 'alloc_pages' 301 | #define alloc_pages(...) alloc_hooks(alloc_pages_noprof(__VA_ARGS__)) | ^ include/linux/alloc_tag.h:155:2: note: expanded from macro 'alloc_hooks' 155 | DEFINE_ALLOC_TAG(_alloc_tag); \ | ^ include/linux/alloc_tag.h:47:51: note: expanded from macro 'DEFINE_ALLOC_TAG' 47 | static DEFINE_PER_CPU(struct alloc_tag_counters, _alloc_tag_cntr); \ | ^ In file included from drivers/input/rmi4/rmi_spi.c:8: In file included from include/linux/module.h:19: In file included from include/linux/elf.h:6: In file included from arch/s390/include/asm/elf.h:173: In file included from arch/s390/include/asm/mmu_context.h:11: In file included from arch/s390/include/asm/pgalloc.h:18: >> include/linux/mm.h:2862:22: error: weak declaration cannot have internal linkage 2862 | struct page *page = alloc_pages(gfp | __GFP_COMP, order); | ^ include/linux/gfp.h:301:28: note: expanded from macro 'alloc_pages' 301 | #define alloc_pages(...) alloc_hooks(alloc_pages_noprof(__VA_ARGS__)) | ^ include/linux/alloc_tag.h:155:2: note: expanded from macro 'alloc_hooks' 155 | DEFINE_ALLOC_TAG(_alloc_tag); \ | ^ include/linux/alloc_tag.h:47:9: note: expanded from macro 'DEFINE_ALLOC_TAG' 47 | static DEFINE_PER_CPU(struct alloc_tag_counters, _alloc_tag_cntr); \ | ^ include/linux/percpu-defs.h:115:2: note: expanded from macro 'DEFINE_PER_CPU' 115 | DEFINE_PER_CPU_SECTION(type, name, "") | ^ include/linux/percpu-defs.h:95:20: note: expanded from macro 'DEFINE_PER_CPU_SECTION' 95 | __PCPU_ATTRS(sec) __weak __typeof__(type) name | ^ include/linux/compiler_attributes.h:403:56: note: expanded from macro '__weak' 403 | #define __weak __attribute__((__weak__)) | ^ In file included from drivers/input/rmi4/rmi_spi.c:9: In file included from include/linux/rmi.h:13: In file included from include/linux/kfifo.h:42: In file included from include/linux/scatterlist.h:9: In file included from arch/s390/include/asm/io.h:78: include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 547 | val = __raw_readb(PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 560 | val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); | ~~~~~~~~~~ ^ include/uapi/linux/byteorder/big_endian.h:37:59: note: expanded from macro '__le16_to_cpu' 37 | #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x)) | ^ include/uapi/linux/swab.h:102:54: note: expanded from macro '__swab16' 102 | #define __swab16(x) (__u16)__builtin_bswap16((__u16)(x)) | ^ In file included from drivers/input/rmi4/rmi_spi.c:9: In file included from include/linux/rmi.h:13: In file included from include/linux/kfifo.h:42: In file included from include/linux/scatterlist.h:9: In file included from arch/s390/include/asm/io.h:78: include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 573 | val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); | ~~~~~~~~~~ ^ include/uapi/linux/byteorder/big_endian.h:35:59: note: expanded from macro '__le32_to_cpu' 35 | #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) | ^ include/uapi/linux/swab.h:115:54: note: expanded from macro '__swab32' 115 | #define __swab32(x) (__u32)__builtin_bswap32((__u32)(x)) | ^ In file included from drivers/input/rmi4/rmi_spi.c:9: In file included from include/linux/rmi.h:13: In file included from include/linux/kfifo.h:42: In file included from include/linux/scatterlist.h:9: In file included from arch/s390/include/asm/io.h:78: include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 584 | __raw_writeb(value, PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 594 | __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 604 | __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:692:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 692 | readsb(PCI_IOBASE + addr, buffer, count); | ~~~~~~~~~~ ^ include/asm-generic/io.h:700:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 700 | readsw(PCI_IOBASE + addr, buffer, count); | ~~~~~~~~~~ ^ include/asm-generic/io.h:708:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 708 | readsl(PCI_IOBASE + addr, buffer, count); | ~~~~~~~~~~ ^ include/asm-generic/io.h:717:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 717 | writesb(PCI_IOBASE + addr, buffer, count); | ~~~~~~~~~~ ^ include/asm-generic/io.h:726:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 726 | writesw(PCI_IOBASE + addr, buffer, count); | ~~~~~~~~~~ ^ include/asm-generic/io.h:735:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 735 | writesl(PCI_IOBASE + addr, buffer, count); | ~~~~~~~~~~ ^ 74 warnings and 11 errors generated. .. vim +43 include/linux/alloc_tag.h d08b311b6d4946 Suren Baghdasaryan 2024-03-21 37 d08b311b6d4946 Suren Baghdasaryan 2024-03-21 38 #ifdef ARCH_NEEDS_WEAK_PER_CPU d08b311b6d4946 Suren Baghdasaryan 2024-03-21 39 /* d08b311b6d4946 Suren Baghdasaryan 2024-03-21 40 * When percpu variables are required to be defined as weak, static percpu d08b311b6d4946 Suren Baghdasaryan 2024-03-21 41 * variables can't be used inside a function (see comments for DECLARE_PER_CPU_SECTION). d08b311b6d4946 Suren Baghdasaryan 2024-03-21 42 */ d08b311b6d4946 Suren Baghdasaryan 2024-03-21 @43 #error "Memory allocation profiling is incompatible with ARCH_NEEDS_WEAK_PER_CPU" d08b311b6d4946 Suren Baghdasaryan 2024-03-21 44 #endif d08b311b6d4946 Suren Baghdasaryan 2024-03-21 45 :::::: The code at line 43 was first introduced by commit :::::: d08b311b6d4946b22d966201da4008a197736e3d lib: add allocation tagging support for memory allocation profiling :::::: TO: Suren Baghdasaryan :::::: CC: Andrew Morton -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki