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 CAB39E75436 for ; Tue, 3 Oct 2023 07:53:44 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4CC9B8D0055; Tue, 3 Oct 2023 03:53:44 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 47D266B01F2; Tue, 3 Oct 2023 03:53:44 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3448E8D0055; Tue, 3 Oct 2023 03:53:44 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 24A536B01F1 for ; Tue, 3 Oct 2023 03:53:44 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id DA36BC01EE for ; Tue, 3 Oct 2023 07:53:43 +0000 (UTC) X-FDA: 81303385926.14.10217EB Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by imf05.hostedemail.com (Postfix) with ESMTP id 80C05100017 for ; Tue, 3 Oct 2023 07:53:39 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=FftPiatV; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf05.hostedemail.com: domain of lkp@intel.com designates 134.134.136.24 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=1696319622; 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=m7K0+FwtuhE4EKsjVm5hWwwIehi2E1MB208mtDdrg28=; b=v6oa2Ad/GFowiQFNAFdokXDxjERquXnSY1waVTcGW0AOAbzZx60eLpcNTeWfoCvBsh5Dbq uTauC93wPHQdOq8S8MSOvhB8ilt/aHNWg4BVINexr3Pgt/gE6hSTJicTomoyJkR3820crb SIcdcofPU1Rnx8uRj7O5+/DPySvf634= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=FftPiatV; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf05.hostedemail.com: domain of lkp@intel.com designates 134.134.136.24 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1696319622; a=rsa-sha256; cv=none; b=1ark98Z4dqA4ExyKJNoDiVxV19Ped+F73z9kbdbbqOw3GCNV8ll7jfqOoBx7XxKjcYKF2a Q85fcs8EzpoCehPrHhBNCj+7LkGfoAbKWSM2JzbQsDxWLprgBC865FKa08+TzKJP4QU3+V BIy0hs8quS7Dtw+GT/AZIKTeU28Zm10= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696319621; x=1727855621; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=cn4FFoJx/oeaBVpP42T/THT0z776pI2L6x7rZsA/yMk=; b=FftPiatV2/V1lbDJs0B7FWHumpAQ60fArMFmC/7c8ZCIWvZRj7ShiIf9 ewBaZ8vSornl8Mt5KzC8tCEUjsIjQQelxUXWJaF4SQpEdyIIrpsiUTh+f RENxCqt/so77UWplUrQolnBV4hsjaOymA5lrexhU+s6D9HaJDhpQNtVd1 zFLlk+RQOH6RHd9ZUfOV7/BOBszs1tmyRWu5u3oANMMf8BhMlhVzIteqT A/bCGiaYdj6cRxZQjJWuzuRZPys1JQbavo2suYjhJu4b6a+tyTYES2ZgQ ldk3dseMErugNp4upmFZU9sNDHZzW8dhBc9VCFxGngXKGTWpyB6ONmdL1 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10851"; a="385639770" X-IronPort-AV: E=Sophos;i="6.03,196,1694761200"; d="scan'208";a="385639770" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2023 00:53:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10851"; a="754323419" X-IronPort-AV: E=Sophos;i="6.03,196,1694761200"; d="scan'208";a="754323419" Received: from lkp-server02.sh.intel.com (HELO c3b01524d57c) ([10.239.97.151]) by fmsmga007.fm.intel.com with ESMTP; 03 Oct 2023 00:52:57 -0700 Received: from kbuild by c3b01524d57c with local (Exim 4.96) (envelope-from ) id 1qnaD7-0006tx-2G; Tue, 03 Oct 2023 07:52:54 +0000 Date: Tue, 3 Oct 2023 15:52:46 +0800 From: kernel test robot To: Alexandre Ghiti , Ryan Roberts , Alexander Potapenko , Marco Elver , Dmitry Vyukov , Paul Walmsley , Palmer Dabbelt , Albert Ou , Anup Patel , Atish Patra , Ard Biesheuvel , Andrey Ryabinin , Andrey Konovalov , Vincenzo Frascino , kasan-dev@googlegroups.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-efi@vger.kernel.org, linux-mm@kvack.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Alexandre Ghiti Subject: Re: [PATCH 2/5] mm: Introduce pudp/p4dp/pgdp_get() functions Message-ID: <202310031548.53wZmUUH-lkp@intel.com> References: <20231002151031.110551-3-alexghiti@rivosinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231002151031.110551-3-alexghiti@rivosinc.com> X-Rspamd-Queue-Id: 80C05100017 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Sign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SJa4xEGtzsBG2muxIK/iYxJEFOixdKhuHN/PRlDf7d2msxcZcotAw4D0hadNahyYM685fdv2VO5eve1w/hJiPAM4G6yEIoXozJ7DBLTxq1lALRVOkIoq08lR44EttIBxjjmYA/OoAwPjB9hgK2d4aExZbEr3KHWycYU1kxyyrpnpQcFPLqO5cO6xTW3SOjxrzlZsMFjoGwugERTpRiR39DuITFuZOdIXdPDV/940I4zBtIoKwkNB8kOQmtM079cqqffHShc+YivA7O9jx4iyGMjvy9Q1ZHxfZsaHHnFiSi3FyR/8LyM37PHpv91XJotgEIP31OA459/pClKRDLbZDVkyGToLxKiUO5BH8eV2lAsFcxZgRZmq8ZXzb/K7/SW5BhZ4L9JM8FBmpemMjKQChG3QxViqAlOZIA4URZ9+874Qq9AVVUhmwmYqbncOI2o/Zi28LXZZZ6scy4poId3dCO3EmXv6XUIzOaPKP8eEVfTIhrR5x9jsxKpkbaCnY3ouXN4lfOpC8Cmr6tFUZxVNfd+5c= 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: Hi Alexandre, kernel test robot noticed the following build errors: [auto build test ERROR on linus/master] [also build test ERROR on v6.6-rc4 next-20231003] [cannot apply to efi/next] [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/Alexandre-Ghiti/riscv-Use-WRITE_ONCE-when-setting-page-table-entries/20231002-231725 base: linus/master patch link: https://lore.kernel.org/r/20231002151031.110551-3-alexghiti%40rivosinc.com patch subject: [PATCH 2/5] mm: Introduce pudp/p4dp/pgdp_get() functions config: arm-moxart_defconfig (https://download.01.org/0day-ci/archive/20231003/202310031548.53wZmUUH-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231003/202310031548.53wZmUUH-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/202310031548.53wZmUUH-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:29: >> include/linux/pgtable.h:310:29: error: function cannot return array type 'pgd_t' (aka 'unsigned int[2]') 310 | static inline pgd_t pgdp_get(pgd_t *pgdp) | ^ >> include/linux/pgtable.h:312:9: error: incompatible pointer to integer conversion returning 'const volatile pmdval_t *' (aka 'const volatile unsigned int *') from a function with result type 'int' [-Wint-conversion] 312 | return READ_ONCE(*pgdp); | ^~~~~~~~~~~~~~~~ include/asm-generic/rwonce.h:47:28: note: expanded from macro 'READ_ONCE' 47 | #define READ_ONCE(x) \ | ^ 48 | ({ \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 49 | compiletime_assert_rwonce_type(x); \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 50 | __READ_ONCE(x); \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 51 | }) | ~~ In file included from arch/arm/kernel/asm-offsets.c:12: In file included from include/linux/mm.h:1075: 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:97:11: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds] 97 | 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:1075: 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:97:25: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds] 97 | 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:1075: 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:113:11: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds] 113 | 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:1075: 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:113:27: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds] 113 | 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:1075: 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:5: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds] 114 | (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:1075: 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:21: warning: array index 2 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds] 114 | (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:1075: 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:156:1: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds] 156 | _SIG_SET_BINOP(sigorsets, _sig_or) vim +310 include/linux/pgtable.h 308 309 #ifndef pgdp_get > 310 static inline pgd_t pgdp_get(pgd_t *pgdp) 311 { > 312 return READ_ONCE(*pgdp); 313 } 314 #endif 315 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki