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 079A2C3271E for ; Fri, 5 Jul 2024 16:56:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7BD576B0096; Fri, 5 Jul 2024 12:56:33 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 76BF06B0098; Fri, 5 Jul 2024 12:56:33 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 60C6C6B0099; Fri, 5 Jul 2024 12:56:33 -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 43CD76B0096 for ; Fri, 5 Jul 2024 12:56:33 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id B640E40277 for ; Fri, 5 Jul 2024 16:56:32 +0000 (UTC) X-FDA: 82306302624.13.CADAF69 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) by imf29.hostedemail.com (Postfix) with ESMTP id 237A1120019 for ; Fri, 5 Jul 2024 16:56:29 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=ePZtye68; spf=pass (imf29.hostedemail.com: domain of lkp@intel.com designates 192.198.163.17 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=1720198570; 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=hy2u0SmoaKMzP1wIf1++BwpfTpoEKT31AocQyaa67fI=; b=AlUlSThOd2Rn3sYeXog2WkkGvLsGgodChna0/xOtap454cvxVk1FCE7qve+0dQMeHYxDFZ uNEiIN1MgJB4ibfA3yPOTvcPwNAyKx5I89pB492s3+dPcvi64+qRS4QKsQdEreBtA17REB sv2kFkha6mtuKBz+pMRKvHIRfhDIdAE= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=ePZtye68; spf=pass (imf29.hostedemail.com: domain of lkp@intel.com designates 192.198.163.17 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=1720198570; a=rsa-sha256; cv=none; b=zWKSetDYpTQjXR4Svsm/b1gZW1ngcFom7DwQWeEzROqF06BQijh80tZQjNeS+pRMaXIgTD mvYHk73AQfjwRRjBWDXFltKurJM28tz+OqbQmhItIdLa9auK6VbutGHoHSPb6USx+JNNa1 zcvyX4z3bi84p0VpQnjbBzndVLiLf30= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1720198590; x=1751734590; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=3c83NHxscbCFMyyevE9dy5GhQA7qrWG4fG6eRk+VYZs=; b=ePZtye682WeCprm5BjV2HPIBozlACeSYXD6c7cAeD+R5VSn6+vT00ctY K3kjm5PJMEyGL/MrGUb1574lTeOM9v5dPMhMcsWdFJwkqxe/z9AyRuZUI u7dgapUm/L/CIdHWnsmkj/skvIUlvwyDBYMHWIX8Ywvq6N56IdMSYVF41 ZXKJAAWIkvi9L+SnPOfiJPU24EqPgco7LirqNAeG3aacd6kLDCoMnrF1Q 8bXXqtSIFJDO90/lhI5L35ie59+ZxVpVsUjE8xxceWYkfHIKVVrqBVvM8 xN7TvRJsRoZ6mQgU+yh7oQn86/EDbZYJSocU8rhrtjqhounLXjHDa7yMf g==; X-CSE-ConnectionGUID: Q0LlqWmVT8SGzyB3Ayd2WA== X-CSE-MsgGUID: VyrTJ8UqQPa8rPWuW4PG/Q== X-IronPort-AV: E=McAfee;i="6700,10204,11123"; a="17365983" X-IronPort-AV: E=Sophos;i="6.09,185,1716274800"; d="scan'208";a="17365983" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jul 2024 09:56:28 -0700 X-CSE-ConnectionGUID: kQtLtrRYQ/qcqDzLXVIoqA== X-CSE-MsgGUID: yIFw6MV5RoupqrHjhkWkUQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,185,1716274800"; d="scan'208";a="84473979" Received: from lkp-server01.sh.intel.com (HELO 68891e0c336b) ([10.239.97.150]) by orviesa001.jf.intel.com with ESMTP; 05 Jul 2024 09:56:24 -0700 Received: from kbuild by 68891e0c336b with local (Exim 4.96) (envelope-from ) id 1sPmEP-000SdM-0n; Fri, 05 Jul 2024 16:56:21 +0000 Date: Sat, 6 Jul 2024 00:56:15 +0800 From: kernel test robot To: Oscar Salvador , Andrew Morton Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , linux-kernel@vger.kernel.org, Peter Xu , Muchun Song , David Hildenbrand , SeongJae Park , Miaohe Lin , Michal Hocko , Matthew Wilcox , Christophe Leroy , Oscar Salvador Subject: Re: [PATCH 05/45] mm/pagewalk: Enable walk_pmd_range to handle cont-pmds Message-ID: <202407060025.WIFWw7WY-lkp@intel.com> References: <20240704043132.28501-6-osalvador@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240704043132.28501-6-osalvador@suse.de> X-Stat-Signature: mj8nfag6195zkgadq16fy81u7dcjtgsa X-Rspam-User: X-Rspamd-Queue-Id: 237A1120019 X-Rspamd-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jTIH1g2/PL2WjUCgSMbuJg+fDMPo6f8QJ1VxjEjC67U5DxvauR7vjVECP3qOFaAXBwlNhaA78BFGL9+D37SKaswP7GobCRxjs4HAWa8wBncgZpliY1k7zj4YkBXCuN4LuCURqqGtlYnwvQ6Ac/H12cE8bOKUvOQ3B6W247DaCKmDnpt4ntSVYYAha3Pdq/B9XlAvmX4gxD+iJwSAYv7QZx8tkZ3tEpo9rlrFiU7n1+xzS9JQbzMav1wkJ86I2mSAs3Qvz/TeZ0St3oJRXc2E5kBoegu0YjBj9oO/ZABUuiTx5sg0ayW1FRZLatNCc6sC9OVrkJczdoZQL34zoXtsN8nwBnElLCSD8JSfu43uo8rt7EPc9+5N4CieNNChkGysASN+F 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 Oscar, kernel test robot noticed the following build errors: [auto build test ERROR on akpm-mm/mm-everything] [also build test ERROR on sj/damon/next powerpc/next powerpc/fixes linus/master v6.10-rc6 next-20240703] [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/Oscar-Salvador/arch-x86-Drop-own-definition-of-pgd-p4d_leaf/20240705-042640 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20240704043132.28501-6-osalvador%40suse.de patch subject: [PATCH 05/45] mm/pagewalk: Enable walk_pmd_range to handle cont-pmds config: um-allnoconfig (https://download.01.org/0day-ci/archive/20240706/202407060025.WIFWw7WY-lkp@intel.com/config) compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240706/202407060025.WIFWw7WY-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/202407060025.WIFWw7WY-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from mm/pagewalk.c:3: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from arch/um/include/asm/hardirq.h:5: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:14: In file included from arch/um/include/asm/io.h:24: include/asm-generic/io.h:548:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 548 | val = __raw_readb(PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:561:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 561 | val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); | ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' 37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) | ^ In file included from mm/pagewalk.c:3: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from arch/um/include/asm/hardirq.h:5: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:14: In file included from arch/um/include/asm/io.h:24: include/asm-generic/io.h:574:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 574 | val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); | ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' 35 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) | ^ In file included from mm/pagewalk.c:3: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from arch/um/include/asm/hardirq.h:5: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:14: In file included from arch/um/include/asm/io.h:24: include/asm-generic/io.h:585:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 585 | __raw_writeb(value, PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:595:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 595 | __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:605:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 605 | __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:693:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 693 | readsb(PCI_IOBASE + addr, buffer, count); | ~~~~~~~~~~ ^ include/asm-generic/io.h:701:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 701 | readsw(PCI_IOBASE + addr, buffer, count); | ~~~~~~~~~~ ^ include/asm-generic/io.h:709:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 709 | readsl(PCI_IOBASE + addr, buffer, count); | ~~~~~~~~~~ ^ include/asm-generic/io.h:718:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 718 | writesb(PCI_IOBASE + addr, buffer, count); | ~~~~~~~~~~ ^ include/asm-generic/io.h:727:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 727 | writesw(PCI_IOBASE + addr, buffer, count); | ~~~~~~~~~~ ^ include/asm-generic/io.h:736:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 736 | writesl(PCI_IOBASE + addr, buffer, count); | ~~~~~~~~~~ ^ >> mm/pagewalk.c:91:11: error: call to undeclared function 'pmd_cont_addr_end'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 91 | next = pmd_cont_addr_end(addr, end); | ^ 12 warnings and 1 error generated. vim +/pmd_cont_addr_end +91 mm/pagewalk.c 75 76 static int walk_pmd_range(pud_t *pud, unsigned long addr, unsigned long end, 77 struct mm_walk *walk) 78 { 79 pmd_t *pmd; 80 unsigned long next; 81 const struct mm_walk_ops *ops = walk->ops; 82 int err = 0; 83 int depth = real_depth(3); 84 int cont_pmds; 85 86 pmd = pmd_offset(pud, addr); 87 do { 88 again: 89 if (pmd_cont(*pmd)) { 90 cont_pmds = CONT_PMDS; > 91 next = pmd_cont_addr_end(addr, end); 92 } else { 93 cont_pmds = 1; 94 next = pmd_addr_end(addr, end); 95 } 96 if (pmd_none(*pmd)) { 97 if (ops->pte_hole) 98 err = ops->pte_hole(addr, next, depth, walk); 99 if (err) 100 break; 101 continue; 102 } 103 104 walk->action = ACTION_SUBTREE; 105 106 /* 107 * This implies that each ->pmd_entry() handler 108 * needs to know about pmd_trans_huge() pmds 109 */ 110 if (ops->pmd_entry) 111 err = ops->pmd_entry(pmd, addr, next, walk); 112 if (err) 113 break; 114 115 if (walk->action == ACTION_AGAIN) 116 goto again; 117 118 /* 119 * Check this here so we only break down trans_huge 120 * pages when we _need_ to 121 */ 122 if ((!walk->vma && (pmd_leaf(*pmd) || !pmd_present(*pmd))) || 123 walk->action == ACTION_CONTINUE || 124 !(ops->pte_entry)) 125 continue; 126 127 if (walk->vma) 128 split_huge_pmd(walk->vma, pmd, addr); 129 130 err = walk_pte_range(pmd, addr, next, walk); 131 if (err) 132 break; 133 134 if (walk->action == ACTION_AGAIN) 135 goto again; 136 } while (pmd += cont_pmds, addr = next, addr != end); 137 138 return err; 139 } 140 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki