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 760C2CDD553 for ; Wed, 18 Sep 2024 20:31:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7FF536B00AF; Wed, 18 Sep 2024 16:31:00 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7AF186B00B0; Wed, 18 Sep 2024 16:31:00 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 650FD6B00B1; Wed, 18 Sep 2024 16:31:00 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 414CB6B00AF for ; Wed, 18 Sep 2024 16:31:00 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id D57951A0891 for ; Wed, 18 Sep 2024 20:30:59 +0000 (UTC) X-FDA: 82579003038.23.3DA74C3 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) by imf10.hostedemail.com (Postfix) with ESMTP id D47A7C000E for ; Wed, 18 Sep 2024 20:30:56 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=DKOvUFhr; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf10.hostedemail.com: domain of lkp@intel.com designates 192.198.163.11 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1726691375; a=rsa-sha256; cv=none; b=qXty657/wEyXpHQ1Up7368reJjNzZyNIEIKy0cIa+zvVj35q+ZMQCIikNFsh4Czi/3Py93 ynCpMu8UYfMJHOYynuc0yh5p8xEBSvMVcTzsemvaU7MWpAdPMKmPt8t7xt740NqLVBKG3y 5WNyTNE9bgS4Mqhpzpo82aCIxhh6Hdk= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=DKOvUFhr; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf10.hostedemail.com: domain of lkp@intel.com designates 192.198.163.11 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=1726691375; 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:in-reply-to:references:references:dkim-signature; bh=6y93hK9fJeEj8Dp8VzUu/cuJ9J287umls7haJSmnzfw=; b=nwechSlNjldV7UNFlCk/102eTEMamWkWLwiuiyu84jdFXVo8DAZWkYDOeatxzUmIYx/VXb G2tmDvK3t1hy+HWnL3JbV/iqSIrulc/U9yqufum3WefHCMQNFz1el5uchFV3/eOs56m1rP 9DGUS9Y49QNoKde2awGEtOo8qA9HjIo= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1726691457; x=1758227457; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=v8crAcUcgAosNzF9JtGxdHujIVkHQ2sPvfBZI7YKIEI=; b=DKOvUFhr1aNzG0EHfxOE5SiHjVCOrJXrqOAXXYHh1hkA8nW/T5wYkRYs GOk/cQlIYvgP3cQ7XnAX8FQ5rGoSwS2z51oFunUqYJjnJh5tNW6m506e4 HxmItOMiem2HUU7VlCu/CK6P1a8zNtMTvHwIulpW4Ftvyy4a3uyHUxShM GOjVer/rBmuLCRG/sxnCJCTDVPzOAtFKzQMtrKlvDm837MtoOBeFrq4cM AHNePDgBLR/z74hAxDXawgrNCN+j2CJ409Mn19UyPpfpnMX5nxoaKaoPD D9RZhVfUwyRFvp01GCKATVVVUxMKBb9ZHPGn1lAuGH9XjjExNF8KMGwOD A==; X-CSE-ConnectionGUID: wnryWO9WRRGPuFErnYjneQ== X-CSE-MsgGUID: AbIvqACQSxKjt/ET2Vr58w== X-IronPort-AV: E=McAfee;i="6700,10204,11199"; a="36211535" X-IronPort-AV: E=Sophos;i="6.10,239,1719903600"; d="scan'208";a="36211535" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2024 13:30:55 -0700 X-CSE-ConnectionGUID: G03l2KzpRg6lUZ1ybq6Pkw== X-CSE-MsgGUID: KgXze0/ERmmsxsK33VvTNA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,239,1719903600"; d="scan'208";a="107154632" Received: from lkp-server01.sh.intel.com (HELO 53e96f405c61) ([10.239.97.150]) by orviesa001.jf.intel.com with ESMTP; 18 Sep 2024 13:30:48 -0700 Received: from kbuild by 53e96f405c61 with local (Exim 4.96) (envelope-from ) id 1sr1K1-000Cc6-1d; Wed, 18 Sep 2024 20:30:45 +0000 Date: Thu, 19 Sep 2024 04:30:20 +0800 From: kernel test robot To: Anshuman Khandual , linux-mm@kvack.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Anshuman Khandual , Andrew Morton , Linux Memory Management List , David Hildenbrand , Ryan Roberts , "Mike Rapoport (IBM)" , Arnd Bergmann , x86@kernel.org, linux-m68k@lists.linux-m68k.org, linux-fsdevel@vger.kernel.org, kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Dimitri Sivanich , Alexander Viro , Muchun Song , Andrey Ryabinin , Miaohe Lin , Dennis Zhou , Tejun Heo , Christoph Lameter , Uladzislau Rezki , Christoph Hellwig Subject: Re: [PATCH V2 7/7] mm: Use pgdp_get() for accessing PGD entries Message-ID: <202409190310.ViHBRe12-lkp@intel.com> References: <20240917073117.1531207-8-anshuman.khandual@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240917073117.1531207-8-anshuman.khandual@arm.com> X-Rspamd-Queue-Id: D47A7C000E X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: 4ucw6tif3ncb3qz7sn13qfn4pyu5zsuk X-HE-Tag: 1726691456-715590 X-HE-Meta: U2FsdGVkX19nDpdkJeajZrEZMt+yBVztX56r7mTv3vF1nxlW9vE625ydC9S6m3YaU4RjImLsJw1g8NYS2z/yb3wHXb32WTKWfQKAK5YWPzxL6JGOa3icjvXYMgW7I1LUfb/tv66dJCFgR33RMcJIdMQiyLQc7/omnAcWdMZJ7dk094igteQcwaOZlmLJHJiFUYk9mWSO7w9Ejk7Hkx9RrevW6m0gq1pBEakSGyk9rUFyGaEohK+eLA7dBQPejowAeS3iJIViSsHD/YRcbFkd844g7zpi/YfSZf7Rl35YJsif7dCpdVX3JhWbgAZS3IuU1la1YV+g1+rfx8J3FgXNqtQHsPzNDmLzKg/IVAtnbBeR/hXV7E/lA/OfYwlNt5BmSP5fU83wntKIIB5dKtdG6NEXrl7XSVBLd5GT62xTRgXBcmFVloOKnNSBCz0vY0RvaR83mdBBObsGZ6SATbtz49QVlKd3aiCBGaK6jXSWODug8+iG0BfAhMUv16O9C48El7VoUAJJ2edLIS8CNt6DkPoFOZJeaH7ZL8S+zOoo8/nXpBiDAfgSmTEieryWS+mRLXAO6DMXpe/Te8RuJzn+QA74ZxG3ud6MbXvfyVyntKnZ95MpGy5DbHJEG7kYIA1PlkR+posfcqfnqHavZAGJmIpkJMf5WVXFVdfD9N2sjwv6BFVIw+u2aWeVdtTXROb5xrrYZCDr7YWxtrylwOiFcfaosdYaTvzXTyOxy534LdGz+mGF+ZyJdVoeHRYWmz9kp9Vahx/6/RNdb6PVm/QFDk+tiKgdqtVDAEs+pFAccntXJw0SoX3U2KcEsph8BBsTf1kOJ/3ZQ7n7Bq9qgwV3HbxuZ4n3fFZaBgv92ZQ5v9UNdwxdHAHxjgTEOePlHn3mqmDmUKkrXW5forAvAuIQBleUzJNIcJ1Q0f3G+wyKpnuDyb2WAQqAPyvZfY8zf6xcqZ3aZc5yDD667TS/yv3 5fT8Vz86 l2947mhSMuoPH8QmStRx/KutZc7/90tRWSodxT9b6lULbRV93B32JYmuqg9RtWYVO8HQU4s0nUjIwwpNaprJG3kl4Ng/n69aDleZA6SCtR+K5JGzPkg0DAkgEsiOzluXu4NDjl9Fx4OvcDkAq8m2nDyvATfieOr/QaWPhQqHNAsMEBykINV3Pa525bQAq8aiA/2o9uP98i4txSEDQaye9i/ef9891gbmw2x3I7Pkvv6fquw3Y1b8pwZTQzFFZGdAYHlTVQUSOoyy3SX6Ba3UFzU4vtyB5WjXWveb7oOS2vuO/397oE87oXr0EF1w7BcfM2Ed8HRP0h7GMuQ06jdFiw5f1cOibfM6WYsJnZOsxQgyP3IDLk0ql0dSGzFTsm3kNzN0FCRA/+11ky/f4OQyebNm4tIqf5ZquTlVoUXCs7vTjAKZcW8PSeTItwUqLLjBfO+CxZT9iD51kaxHrdumBW2Ls1GBQMbWXoIAf05tn1zApTaM7m0+NVyOl0tQwcXByAY8uKOsAr+wXoFqjrmi4mqWA6WPlEWeCKPDiihiO2Q01/9VjXrdrg/qwI2k7+KHw8Fy0U+FVMQMgLy4= 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: Hi Anshuman, kernel test robot noticed the following build errors: [auto build test ERROR on char-misc/char-misc-testing] [also build test ERROR on char-misc/char-misc-next char-misc/char-misc-linus brauner-vfs/vfs.all dennis-percpu/for-next linus/master v6.11] [cannot apply to akpm-mm/mm-everything next-20240918] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Anshuman-Khandual/m68k-mm-Change-pmd_val/20240917-153331 base: char-misc/char-misc-testing patch link: https://lore.kernel.org/r/20240917073117.1531207-8-anshuman.khandual%40arm.com patch subject: [PATCH V2 7/7] mm: Use pgdp_get() for accessing PGD entries config: arm-footbridge_defconfig (https://download.01.org/0day-ci/archive/20240919/202409190310.ViHBRe12-lkp@intel.com/config) compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 8663a75fa2f31299ab8d1d90288d9df92aadee88) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240919/202409190310.ViHBRe12-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/202409190310.ViHBRe12-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from arch/arm/kernel/asm-offsets.c:12: In file included from include/linux/mm.h:30: >> include/linux/pgtable.h:1245:18: error: use of undeclared identifier 'pgdp'; did you mean 'pgd'? 1245 | pgd_t old_pgd = pgdp_get(pgd); | ^ arch/arm/include/asm/pgtable.h:154:36: note: expanded from macro 'pgdp_get' 154 | #define pgdp_get(pgpd) READ_ONCE(*pgdp) | ^ include/linux/pgtable.h:1243:48: note: 'pgd' declared here 1243 | static inline int pgd_none_or_clear_bad(pgd_t *pgd) | ^ >> include/linux/pgtable.h:1245:18: error: use of undeclared identifier 'pgdp'; did you mean 'pgd'? 1245 | pgd_t old_pgd = pgdp_get(pgd); | ^ arch/arm/include/asm/pgtable.h:154:36: note: expanded from macro 'pgdp_get' 154 | #define pgdp_get(pgpd) READ_ONCE(*pgdp) | ^ include/linux/pgtable.h:1243:48: note: 'pgd' declared here 1243 | static inline int pgd_none_or_clear_bad(pgd_t *pgd) | ^ >> include/linux/pgtable.h:1245:18: error: use of undeclared identifier 'pgdp'; did you mean 'pgd'? 1245 | pgd_t old_pgd = pgdp_get(pgd); | ^ arch/arm/include/asm/pgtable.h:154:36: note: expanded from macro 'pgdp_get' 154 | #define pgdp_get(pgpd) READ_ONCE(*pgdp) | ^ include/linux/pgtable.h:1243:48: note: 'pgd' declared here 1243 | static inline int pgd_none_or_clear_bad(pgd_t *pgd) | ^ >> include/linux/pgtable.h:1245:18: error: use of undeclared identifier 'pgdp'; did you mean 'pgd'? 1245 | pgd_t old_pgd = pgdp_get(pgd); | ^ arch/arm/include/asm/pgtable.h:154:36: note: expanded from macro 'pgdp_get' 154 | #define pgdp_get(pgpd) READ_ONCE(*pgdp) | ^ include/linux/pgtable.h:1243:48: note: 'pgd' declared here 1243 | static inline int pgd_none_or_clear_bad(pgd_t *pgd) | ^ >> include/linux/pgtable.h:1245:18: error: use of undeclared identifier 'pgdp'; did you mean 'pgd'? 1245 | pgd_t old_pgd = pgdp_get(pgd); | ^ arch/arm/include/asm/pgtable.h:154:36: note: expanded from macro 'pgdp_get' 154 | #define pgdp_get(pgpd) READ_ONCE(*pgdp) | ^ include/linux/pgtable.h:1243:48: note: 'pgd' declared here 1243 | static inline int pgd_none_or_clear_bad(pgd_t *pgd) | ^ >> include/linux/pgtable.h:1245:18: error: use of undeclared identifier 'pgdp'; did you mean 'pgd'? 1245 | pgd_t old_pgd = pgdp_get(pgd); | ^ arch/arm/include/asm/pgtable.h:154:36: note: expanded from macro 'pgdp_get' 154 | #define pgdp_get(pgpd) READ_ONCE(*pgdp) | ^ include/linux/pgtable.h:1243:48: note: 'pgd' declared here 1243 | static inline int pgd_none_or_clear_bad(pgd_t *pgd) | ^ >> include/linux/pgtable.h:1245:18: error: use of undeclared identifier 'pgdp'; did you mean 'pgd'? 1245 | pgd_t old_pgd = pgdp_get(pgd); | ^ arch/arm/include/asm/pgtable.h:154:36: note: expanded from macro 'pgdp_get' 154 | #define pgdp_get(pgpd) READ_ONCE(*pgdp) | ^ include/linux/pgtable.h:1243:48: note: 'pgd' declared here 1243 | static inline int pgd_none_or_clear_bad(pgd_t *pgd) | ^ >> include/linux/pgtable.h:1245:18: error: use of undeclared identifier 'pgdp'; did you mean 'pgd'? 1245 | pgd_t old_pgd = pgdp_get(pgd); | ^ arch/arm/include/asm/pgtable.h:154:36: note: expanded from macro 'pgdp_get' 154 | #define pgdp_get(pgpd) READ_ONCE(*pgdp) | ^ include/linux/pgtable.h:1243:48: note: 'pgd' declared here 1243 | static inline int pgd_none_or_clear_bad(pgd_t *pgd) | ^ >> include/linux/pgtable.h:1245:8: error: array initializer must be an initializer list or wide string literal 1245 | pgd_t old_pgd = pgdp_get(pgd); | ^ In file included from arch/arm/kernel/asm-offsets.c:12: In file included from include/linux/mm.h:1131: In file included from include/linux/huge_mm.h:8: 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[2]') [-Warray-bounds] 98 | return (set->sig[3] | set->sig[2] | | ^ ~ arch/arm/include/asm/signal.h:17:2: note: array 'sig' declared here 17 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/arm/kernel/asm-offsets.c:12: In file included from include/linux/mm.h:1131: In file included from include/linux/huge_mm.h:8: 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[2]') [-Warray-bounds] 98 | return (set->sig[3] | set->sig[2] | | ^ ~ arch/arm/include/asm/signal.h:17:2: note: array 'sig' declared here 17 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/arm/kernel/asm-offsets.c:12: In file included from include/linux/mm.h:1131: In file included from include/linux/huge_mm.h:8: 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[2]') [-Warray-bounds] 114 | return (set1->sig[3] == set2->sig[3]) && | ^ ~ arch/arm/include/asm/signal.h:17:2: note: array 'sig' declared here 17 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/arm/kernel/asm-offsets.c:12: In file included from include/linux/mm.h:1131: In file included from include/linux/huge_mm.h:8: 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:27: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds] 114 | return (set1->sig[3] == set2->sig[3]) && | ^ ~ arch/arm/include/asm/signal.h:17:2: note: array 'sig' declared here 17 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/arm/kernel/asm-offsets.c:12: In file included from include/linux/mm.h:1131: In file included from include/linux/huge_mm.h:8: 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:115:5: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds] 115 | (set1->sig[2] == set2->sig[2]) && | ^ ~ arch/arm/include/asm/signal.h:17:2: note: array 'sig' declared here 17 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/arm/kernel/asm-offsets.c:12: In file included from include/linux/mm.h:1131: In file included from include/linux/huge_mm.h:8: 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:115:21: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds] 115 | (set1->sig[2] == set2->sig[2]) && | ^ ~ arch/arm/include/asm/signal.h:17:2: note: array 'sig' declared here 17 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/arm/kernel/asm-offsets.c:12: In file included from include/linux/mm.h:1131: In file included from include/linux/huge_mm.h:8: 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:157:1: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds] 157 | _SIG_SET_BINOP(sigorsets, _sig_or) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:138:8: note: expanded from macro '_SIG_SET_BINOP' 138 | a3 = a->sig[3]; a2 = a->sig[2]; \ | ^ ~ arch/arm/include/asm/signal.h:17:2: note: array 'sig' declared here 17 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/arm/kernel/asm-offsets.c:12: In file included from include/linux/mm.h:1131: In file included from include/linux/huge_mm.h:8: In file included from include/linux/fs.h:33: -- 163 | _SIG_SET_BINOP(sigandnsets, _sig_andn) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:140:3: note: expanded from macro '_SIG_SET_BINOP' 140 | r->sig[3] = op(a3, b3); \ | ^ ~ arch/arm/include/asm/signal.h:17:2: note: array 'sig' declared here 17 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/arm/kernel/asm-offsets.c:12: In file included from include/linux/mm.h:1131: In file included from include/linux/huge_mm.h:8: 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:163:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds] 163 | _SIG_SET_BINOP(sigandnsets, _sig_andn) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:141:3: note: expanded from macro '_SIG_SET_BINOP' 141 | r->sig[2] = op(a2, b2); \ | ^ ~ arch/arm/include/asm/signal.h:17:2: note: array 'sig' declared here 17 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/arm/kernel/asm-offsets.c:12: In file included from include/linux/mm.h:1131: In file included from include/linux/huge_mm.h:8: 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:187:1: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds] 187 | _SIG_SET_OP(signotset, _sig_not) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:174:27: note: expanded from macro '_SIG_SET_OP' 174 | case 4: set->sig[3] = op(set->sig[3]); \ | ^ ~ include/linux/signal.h:186:24: note: expanded from macro '_sig_not' 186 | #define _sig_not(x) (~(x)) | ^ arch/arm/include/asm/signal.h:17:2: note: array 'sig' declared here 17 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/arm/kernel/asm-offsets.c:12: In file included from include/linux/mm.h:1131: In file included from include/linux/huge_mm.h:8: 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:187:1: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds] 187 | _SIG_SET_OP(signotset, _sig_not) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:174:10: note: expanded from macro '_SIG_SET_OP' 174 | case 4: set->sig[3] = op(set->sig[3]); \ | ^ ~ arch/arm/include/asm/signal.h:17:2: note: array 'sig' declared here 17 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/arm/kernel/asm-offsets.c:12: In file included from include/linux/mm.h:1131: In file included from include/linux/huge_mm.h:8: 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:187:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds] 187 | _SIG_SET_OP(signotset, _sig_not) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:175:20: note: expanded from macro '_SIG_SET_OP' 175 | set->sig[2] = op(set->sig[2]); \ | ^ ~ include/linux/signal.h:186:24: note: expanded from macro '_sig_not' 186 | #define _sig_not(x) (~(x)) | ^ arch/arm/include/asm/signal.h:17:2: note: array 'sig' declared here 17 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/arm/kernel/asm-offsets.c:12: In file included from include/linux/mm.h:1131: In file included from include/linux/huge_mm.h:8: 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:187:1: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds] 187 | _SIG_SET_OP(signotset, _sig_not) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/signal.h:175:3: note: expanded from macro '_SIG_SET_OP' 175 | set->sig[2] = op(set->sig[2]); \ | ^ ~ arch/arm/include/asm/signal.h:17:2: note: array 'sig' declared here 17 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from arch/arm/kernel/asm-offsets.c:12: In file included from include/linux/mm.h:2232: include/linux/vmstat.h:517:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 517 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ In file included from arch/arm/kernel/asm-offsets.c:12: >> include/linux/mm.h:2822:28: error: use of undeclared identifier 'pgdp'; did you mean 'pgd'? 2822 | return (unlikely(pgd_none(pgdp_get(pgd))) && __p4d_alloc(mm, pgd, address)) ? | ^ arch/arm/include/asm/pgtable.h:154:36: note: expanded from macro 'pgdp_get' 154 | #define pgdp_get(pgpd) READ_ONCE(*pgdp) | ^ include/linux/mm.h:2819:61: note: 'pgd' declared here 2819 | static inline p4d_t *p4d_alloc(struct mm_struct *mm, pgd_t *pgd, | ^ >> include/linux/mm.h:2822:28: error: use of undeclared identifier 'pgdp'; did you mean 'pgd'? 2822 | return (unlikely(pgd_none(pgdp_get(pgd))) && __p4d_alloc(mm, pgd, address)) ? | ^ arch/arm/include/asm/pgtable.h:154:36: note: expanded from macro 'pgdp_get' 154 | #define pgdp_get(pgpd) READ_ONCE(*pgdp) | ^ include/linux/mm.h:2819:61: note: 'pgd' declared here 2819 | static inline p4d_t *p4d_alloc(struct mm_struct *mm, pgd_t *pgd, | ^ >> include/linux/mm.h:2822:28: error: use of undeclared identifier 'pgdp'; did you mean 'pgd'? 2822 | return (unlikely(pgd_none(pgdp_get(pgd))) && __p4d_alloc(mm, pgd, address)) ? | ^ arch/arm/include/asm/pgtable.h:154:36: note: expanded from macro 'pgdp_get' 154 | #define pgdp_get(pgpd) READ_ONCE(*pgdp) | ^ include/linux/mm.h:2819:61: note: 'pgd' declared here 2819 | static inline p4d_t *p4d_alloc(struct mm_struct *mm, pgd_t *pgd, | ^ >> include/linux/mm.h:2822:28: error: use of undeclared identifier 'pgdp'; did you mean 'pgd'? 2822 | return (unlikely(pgd_none(pgdp_get(pgd))) && __p4d_alloc(mm, pgd, address)) ? | ^ arch/arm/include/asm/pgtable.h:154:36: note: expanded from macro 'pgdp_get' 154 | #define pgdp_get(pgpd) READ_ONCE(*pgdp) | ^ include/linux/mm.h:2819:61: note: 'pgd' declared here 2819 | static inline p4d_t *p4d_alloc(struct mm_struct *mm, pgd_t *pgd, | ^ >> include/linux/mm.h:2822:28: error: use of undeclared identifier 'pgdp'; did you mean 'pgd'? 2822 | return (unlikely(pgd_none(pgdp_get(pgd))) && __p4d_alloc(mm, pgd, address)) ? | ^ arch/arm/include/asm/pgtable.h:154:36: note: expanded from macro 'pgdp_get' 154 | #define pgdp_get(pgpd) READ_ONCE(*pgdp) | ^ include/linux/mm.h:2819:61: note: 'pgd' declared here 2819 | static inline p4d_t *p4d_alloc(struct mm_struct *mm, pgd_t *pgd, | ^ >> include/linux/mm.h:2822:28: error: use of undeclared identifier 'pgdp'; did you mean 'pgd'? 2822 | return (unlikely(pgd_none(pgdp_get(pgd))) && __p4d_alloc(mm, pgd, address)) ? | ^ arch/arm/include/asm/pgtable.h:154:36: note: expanded from macro 'pgdp_get' 154 | #define pgdp_get(pgpd) READ_ONCE(*pgdp) | ^ include/linux/mm.h:2819:61: note: 'pgd' declared here 2819 | static inline p4d_t *p4d_alloc(struct mm_struct *mm, pgd_t *pgd, | ^ >> include/linux/mm.h:2822:28: error: use of undeclared identifier 'pgdp'; did you mean 'pgd'? 2822 | return (unlikely(pgd_none(pgdp_get(pgd))) && __p4d_alloc(mm, pgd, address)) ? | ^ arch/arm/include/asm/pgtable.h:154:36: note: expanded from macro 'pgdp_get' 154 | #define pgdp_get(pgpd) READ_ONCE(*pgdp) | ^ include/linux/mm.h:2819:61: note: 'pgd' declared here 2819 | static inline p4d_t *p4d_alloc(struct mm_struct *mm, pgd_t *pgd, | ^ >> include/linux/mm.h:2822:28: error: use of undeclared identifier 'pgdp'; did you mean 'pgd'? 2822 | return (unlikely(pgd_none(pgdp_get(pgd))) && __p4d_alloc(mm, pgd, address)) ? | ^ arch/arm/include/asm/pgtable.h:154:36: note: expanded from macro 'pgdp_get' 154 | #define pgdp_get(pgpd) READ_ONCE(*pgdp) | ^ include/linux/mm.h:2819:61: note: 'pgd' declared here 2819 | static inline p4d_t *p4d_alloc(struct mm_struct *mm, pgd_t *pgd, | ^ >> include/linux/mm.h:2822:28: error: passing 'const volatile pmdval_t *' (aka 'const volatile unsigned int *') to parameter of type 'pmdval_t *' (aka 'unsigned int *') discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] 2822 | return (unlikely(pgd_none(pgdp_get(pgd))) && __p4d_alloc(mm, pgd, address)) ? | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ arch/arm/include/asm/pgtable.h:154:25: note: expanded from macro 'pgdp_get' 154 | #define pgdp_get(pgpd) READ_ONCE(*pgdp) | ^ include/asm-generic/rwonce.h:47:28: note: expanded from macro 'READ_ONCE' 47 | #define READ_ONCE(x) \ | ^ include/linux/compiler.h:77:42: note: expanded from macro 'unlikely' 77 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ include/asm-generic/pgtable-nop4d.h:21:34: note: passing argument to parameter 'pgd' here 21 | static inline int pgd_none(pgd_t pgd) { return 0; } | ^ 29 warnings and 18 errors generated. make[3]: *** [scripts/Makefile.build:117: arch/arm/kernel/asm-offsets.s] Error 1 make[3]: Target 'prepare' not remade because of errors. make[2]: *** [Makefile:1194: prepare0] Error 2 make[2]: Target 'prepare' not remade because of errors. make[1]: *** [Makefile:224: __sub-make] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:224: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. vim +1245 include/linux/pgtable.h 1242 1243 static inline int pgd_none_or_clear_bad(pgd_t *pgd) 1244 { > 1245 pgd_t old_pgd = pgdp_get(pgd); 1246 1247 if (pgd_none(old_pgd)) 1248 return 1; 1249 if (unlikely(pgd_bad(old_pgd))) { 1250 pgd_clear_bad(pgd); 1251 return 1; 1252 } 1253 return 0; 1254 } 1255 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki