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 F3186C369D9 for ; Wed, 30 Apr 2025 05:46:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A5B556B00C6; Wed, 30 Apr 2025 01:46:19 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A08036B00DA; Wed, 30 Apr 2025 01:46:19 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 85CA76B00D1; Wed, 30 Apr 2025 01:46:19 -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 5D13C6B00A8 for ; Wed, 30 Apr 2025 01:46:19 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 87A07B76A0 for ; Wed, 30 Apr 2025 05:46:19 +0000 (UTC) X-FDA: 83389624878.09.C48AB9D Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by imf10.hostedemail.com (Postfix) with ESMTP id 26D01C0006 for ; Wed, 30 Apr 2025 05:46:16 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=fms2MxbG; spf=pass (imf10.hostedemail.com: domain of lkp@intel.com designates 192.198.163.7 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1745991977; 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=C54stjkP4fHiWQBeN/EhA0A+2uiXFXbC/RSjFs9mYXw=; b=w/plo1zqMswUJDYx+9Tt0DAfcBWLoCdAkqVdsDUuLZ/0ujfgdlZBT72wC6tGmskJpUX1+d AKkYtPe5MBD12UYSjRRX6KvtF3kinb0eHq308KlbT+rCnbHZgTWrk6dQevXvsNO+xpSlst gUEW+X8PCmPf0kKf4U3PNLoCZ6+W0Oo= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=fms2MxbG; spf=pass (imf10.hostedemail.com: domain of lkp@intel.com designates 192.198.163.7 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1745991977; a=rsa-sha256; cv=none; b=2tP4gJxUK5f0AvCS5uZwq8y2zY3/aRwMIPi/E2OGE1Ev5owHNTl5hsuhs7zr+jQkPQl9AU FbO25PwVlOG7h9lLbUYyuJgs4ZCw8IZES4PWE2apW/Id5TxmJ+waegch4UuC52+SOHeRCH 0AS+EUaOEJIy49RSOKBgZMG8kKM8fKE= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1745991977; x=1777527977; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=B59v+IvNsmnaorjIyh3dZ9NgCQZ2KF+vHvFz0KbpMgE=; b=fms2MxbGBIhyRFe60+DWXIg2QIPJmmrey9FojuOjp+SROVX7SINRjzTV oE8VqZLJbh+lLd+pRFgcm5w7VBCdx7TcY2xQw1iO1KHJXSrNtSVdvJN7T +Pw6hehrCEx3XkjpLdOrW1ngft8NNAS5cmCrOpg+AxrDgKQoDQHxQOao+ 35Pi9xJNjryB+xJ/O+s8EdkjU+EsyK5EALwfe4vsrmt+Gm1Gth0NYkxuR gVCKkSLThZYJp+oPlxhp3nqGOjvlHvtlf43m915hYDr1bhlwry1FFWLp6 UVwA6Cd61tCzHlrvF5WS44vFHi2OP6dNMdHd+tRU/khdqACVRqeAYBf2E A==; X-CSE-ConnectionGUID: RUISYrXdS5uGPoucpyKxLQ== X-CSE-MsgGUID: R/TSwDA5QQW3hGRQLsEKlg== X-IronPort-AV: E=McAfee;i="6700,10204,11418"; a="73023705" X-IronPort-AV: E=Sophos;i="6.15,251,1739865600"; d="scan'208";a="73023705" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2025 22:46:15 -0700 X-CSE-ConnectionGUID: mv+A/y/RQrCyY35Lon7BEA== X-CSE-MsgGUID: e4thOnXNQpWq2L2samo24A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.15,251,1739865600"; d="scan'208";a="133931527" Received: from lkp-server01.sh.intel.com (HELO 1992f890471c) ([10.239.97.150]) by orviesa010.jf.intel.com with ESMTP; 29 Apr 2025 22:46:07 -0700 Received: from kbuild by 1992f890471c with local (Exim 4.96) (envelope-from ) id 1uA0Gj-0003CH-0W; Wed, 30 Apr 2025 05:46:05 +0000 Date: Wed, 30 Apr 2025 13:45:46 +0800 From: kernel test robot To: Dev Jain , akpm@linux-foundation.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, ryan.roberts@arm.com, david@redhat.com, willy@infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, catalin.marinas@arm.com, will@kernel.org, Liam.Howlett@oracle.com, lorenzo.stoakes@oracle.com, vbabka@suse.cz, jannh@google.com, anshuman.khandual@arm.com, peterx@redhat.com, joey.gouly@arm.com, ioworker0@gmail.com, baohua@kernel.org, kevin.brodsky@arm.com, quic_zhenhuah@quicinc.com, christophe.leroy@csgroup.eu, yangyicong@hisilicon.com, linux-arm-kernel@lists.infradead.org, namit@vmware.com, hughd@google.com, yang@os.amperecomputing.com, ziy@nvidia.com, Dev Jain Subject: Re: [PATCH v2 3/7] mm: Add batched versions of ptep_modify_prot_start/commit Message-ID: <202504301328.ltLGuTxD-lkp@intel.com> References: <20250429052336.18912-4-dev.jain@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250429052336.18912-4-dev.jain@arm.com> X-Rspam-User: X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 26D01C0006 X-Stat-Signature: fm1w4msutzke9jfhyhws8qgo3w95qkmm X-HE-Tag: 1745991976-781926 X-HE-Meta: U2FsdGVkX19CoKAUpieFcnlbeyhZ56G1n5s4qiLgRE2MHzNHsVBFDYi3j4arxmqxik2M5ce1zffW7Qx/Hx5vHPiBo1OxKhAhPb1ltZEeX3nvxI1VYOVv5DYMC4IqIsiYZtFJYKkHSIb9nlGPx45ETjn5eIBct9Vqe9p+h+YHF504N4epMwTwtf+jbdSE0xBCXQ+w1LCJhKQSeMB4ph59Sfg8B7/Nfb+/GQ4No0xVuatLKFVs6qVsBzCelrLJ96wWPQ9o0lICVLlGQByRZjQ/RIkN5f72kdnXB1z+qPoKaA6vpsz8T+KTt7MUfFi3K6sbPfmtfQLRrhprsbhZxn37148pwU43CRBmrw1UqK/4GSpDHTHD9z5kB/Kw0IEn9AltIQFOuaWBkHUIHwM/+kT1kaCz3v0Hg3Xe5SKnWSYFCp8v1lBXrP/nKzoYMYJHy3MmGCy8sxYa8YWyCLvZUkRn+DkVMDiASokieqaxWyd+VXqUXQa/6MOhAylODPCAxew695x2nuKONAM7TWxf0gnIKqzaFSYYcpExpYoO+ZYSWkctKv6RxATJIPAtyeu4H8xfjkvaEP6nDN84QPc2eeTCgPiu1N63at+7i9TSwrT9dfOiFQSZpaACD9PgCyUvnq19AQgLYFnaoW8uUohAO4Q2a1qE+IIlv776qaL6OdE2zTKSkuBWZ5vxTxvIhJ4LD7wvjqnK/exbb/ExWMS18HHic2basNjf0i0T4o50sqrkRC0OY5vOgmftMmsI4iQt7l8wr/yfsttgi1Q5get6Q+M7wCr6oZ9pf9VsyC6gBfAeakxIZF/+d/YfIBwp8ANgXLQVlxF+l6VLicQgpjU19yJVoRvnT52/w9zXcjyeMMJMzx4/snI+srGBK/BPrsmGbUVErM/VYpN7CxZ1bCDbfzdt3Zi5S0nJ9eYCON8QLwYYO8YeR3BH/OSVj3rMzJUuXWfWBZ8OLT62NiJ0bYoYmKj 0NQcfBd4 TOz3H7qey8Ko/LWRUmbxtD68tasf2ImEShatdF4o/gCNGNk6zk/+T10tsH6B0USINe/aUtpEBatmipXQ9EDZHfE3WB8FjpjYWTGpdHY8FfQjjCRlETBYz8vzFws3C8K78BYKN+0X3551jGur/LHGa513R8LtSj2wc9ISIL4OCdIW0WKYi4pOtdYEC1+riVr2bosr3MFWUgmqTJGSyWMs5KCWJOabN23Xmv9h5cFFFRr4BboebN9LzHtBb7VpsoBNn42ms+RVhwsyHszubGP/4XnpZ8GCE3/NK0RcOzPjON8SF2LlOdbHPGKPb9ijaemtAixINYVUFW++qL3LXsgkuLmPp1KaMX0AS1KEdo40hqDqCTqvqaKZ7PcMgXOHws6kIZzlOAT5dHhKjYjIZY42ylr4YQ6fdLEE2JhkFUIC7dzwP4Z8KFTo3DVQFJLF8XxtKGNzHsofxwyM+FYs+MqvP+No89g== 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 Dev, kernel test robot noticed the following build errors: [auto build test ERROR on akpm-mm/mm-everything] [also build test ERROR on arm64/for-next/core linus/master v6.15-rc4 next-20250429] [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/Dev-Jain/mm-Refactor-code-in-mprotect/20250429-133151 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20250429052336.18912-4-dev.jain%40arm.com patch subject: [PATCH v2 3/7] mm: Add batched versions of ptep_modify_prot_start/commit config: arm-randconfig-003-20250430 (https://download.01.org/0day-ci/archive/20250430/202504301328.ltLGuTxD-lkp@intel.com/config) compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250430/202504301328.ltLGuTxD-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/202504301328.ltLGuTxD-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:31: >> include/linux/pgtable.h:901:8: error: call to undeclared function 'ptep_modify_prot_start'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 901 | pte = ptep_modify_prot_start(vma, addr, ptep); | ^ >> include/linux/pgtable.h:921:3: error: call to undeclared function 'ptep_modify_prot_commit'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 921 | ptep_modify_prot_commit(vma, addr, ptep, old_pte, pte); | ^ >> include/linux/pgtable.h:1356:21: error: static declaration of 'ptep_modify_prot_start' follows non-static declaration 1356 | static inline pte_t ptep_modify_prot_start(struct vm_area_struct *vma, | ^ include/linux/pgtable.h:901:8: note: previous implicit declaration is here 901 | pte = ptep_modify_prot_start(vma, addr, ptep); | ^ include/linux/pgtable.h:1367:20: error: static declaration of 'ptep_modify_prot_commit' follows non-static declaration 1367 | static inline void ptep_modify_prot_commit(struct vm_area_struct *vma, | ^ include/linux/pgtable.h:921:3: note: previous implicit declaration is here 921 | ptep_modify_prot_commit(vma, addr, ptep, old_pte, pte); | ^ In file included from arch/arm/kernel/asm-offsets.c:12: In file included from include/linux/mm.h:36: 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:36: 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:36: 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:36: 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:36: 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:36: 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:36: 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:36: 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 2 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:24: 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:36: In file included from include/linux/rcuwait.h:6: vim +/ptep_modify_prot_start +901 include/linux/pgtable.h 893 894 /* See the comment for ptep_modify_prot_start */ 895 #ifndef modify_prot_start_ptes 896 static inline pte_t modify_prot_start_ptes(struct vm_area_struct *vma, 897 unsigned long addr, pte_t *ptep, unsigned int nr) 898 { 899 pte_t pte, tmp_pte; 900 > 901 pte = ptep_modify_prot_start(vma, addr, ptep); 902 while (--nr) { 903 ptep++; 904 addr += PAGE_SIZE; 905 tmp_pte = ptep_modify_prot_start(vma, addr, ptep); 906 if (pte_dirty(tmp_pte)) 907 pte = pte_mkdirty(pte); 908 if (pte_young(tmp_pte)) 909 pte = pte_mkyoung(pte); 910 } 911 return pte; 912 } 913 #endif 914 915 /* See the comment for ptep_modify_prot_commit */ 916 #ifndef modify_prot_commit_ptes 917 static inline void modify_prot_commit_ptes(struct vm_area_struct *vma, unsigned long addr, 918 pte_t *ptep, pte_t old_pte, pte_t pte, unsigned int nr) 919 { 920 for (;;) { > 921 ptep_modify_prot_commit(vma, addr, ptep, old_pte, pte); 922 if (--nr == 0) 923 break; 924 ptep++; 925 addr += PAGE_SIZE; 926 old_pte = pte_next_pfn(old_pte); 927 pte = pte_next_pfn(pte); 928 } 929 } 930 #endif 931 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki