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 66484CDD551 for ; Wed, 18 Sep 2024 18:57:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8A6C86B0083; Wed, 18 Sep 2024 14:57:49 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 82F316B0092; Wed, 18 Sep 2024 14:57:49 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6CFD36B0098; Wed, 18 Sep 2024 14:57:49 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 4BA216B0083 for ; Wed, 18 Sep 2024 14:57:49 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id B614640839 for ; Wed, 18 Sep 2024 18:57:48 +0000 (UTC) X-FDA: 82578768216.09.3857285 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) by imf18.hostedemail.com (Postfix) with ESMTP id 912831C0006 for ; Wed, 18 Sep 2024 18:57:45 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="KId2Ee/N"; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf18.hostedemail.com: domain of lkp@intel.com designates 198.175.65.18 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=1726685742; 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=shXxn80eTs/zrbWdpuHXRkBDH9DrRj3sE8GsmHAtmlA=; b=1Ih+1JVUv9auoohe59l+t6pc424ILAHUnYQYMN9PMBd/esZ5m3xjnkyndFhbHXtA/mucEL A/PW+lhYtx3FgSwQci9SDcZeIGAmVkGrvuSX4WPwG28rECdT5EJ3qK0nS9A5xSVRr2B0Q3 S6S9mnz1LhTFi0Frj1zwiXVkXpcEjAA= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1726685742; a=rsa-sha256; cv=none; b=T/oyVkJviPm9kXPXpOt7GnTpWiCzBj4xDzNgODlSPMLn7M8KhkEw6V0kHV3qkWTj0grpj7 VktuNCWrUnkx/t3SCYgHo+rasd6+b0oCP/RIDcqXXoEq9pKS0fsGvX7rcMWdy7N3MxIfPj /5YhFKDGC7eRKwgNoBQWDxEKjzxGJ4Q= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="KId2Ee/N"; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf18.hostedemail.com: domain of lkp@intel.com designates 198.175.65.18 as permitted sender) smtp.mailfrom=lkp@intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1726685866; x=1758221866; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=uT4pFaHDwbX4JpOoyZm9j/R5DoXtXSFmvct+549geck=; b=KId2Ee/NiOldQnUZvu/zzZgOj8UvjqqIAMn6NHRwXQGhWUkOJJcFLUrW dkzMx70TMOQk2jyFTaRwWCDjGOgZ3GCejK8a30ZvTPVL9V3qcVlNz/uLf Vm9u/BWrAkBYVx/x4RVNZI6MHFElCUUvQMO6dX+iAjYIWLQQeWXdNJdfS SeWVGqA6BZSrXrgFze3GaC+u+G8843Loe++DrbneZxZ34FQ9uAsDc3hpj APZwVcHCLziv2EWJpkTN2lNyixPEx7qy3sh4+VxoNIaPb5qejZpnu4L3U LO/UeWRcz5T0gCMVa4Shg8RE+UIQu+gdE/jNmZ+Y78WTsywuax0qluWDy w==; X-CSE-ConnectionGUID: Pc3g2YE7R8i2VHJ+SNJHZA== X-CSE-MsgGUID: B9ZJuG79RtKKnFjUSJ1ymg== X-IronPort-AV: E=McAfee;i="6700,10204,11199"; a="25739622" X-IronPort-AV: E=Sophos;i="6.10,239,1719903600"; d="scan'208";a="25739622" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2024 11:57:44 -0700 X-CSE-ConnectionGUID: sLnHQreLSg2vk4+qzDcHEw== X-CSE-MsgGUID: RGijHgmTRSecDRaYHwGhDA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,239,1719903600"; d="scan'208";a="69916612" Received: from lkp-server01.sh.intel.com (HELO 53e96f405c61) ([10.239.97.150]) by fmviesa010.fm.intel.com with ESMTP; 18 Sep 2024 11:57:37 -0700 Received: from kbuild by 53e96f405c61 with local (Exim 4.96) (envelope-from ) id 1sqzrr-000CXC-1a; Wed, 18 Sep 2024 18:57:35 +0000 Date: Thu, 19 Sep 2024 02:57:21 +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 , Muchun Song , Andrey Ryabinin , Miaohe Lin , Naoya Horiguchi , Pasha Tatashin , Dennis Zhou , Tejun Heo , Christoph Lameter , Uladzislau Rezki , Christoph Hellwig Subject: Re: [PATCH V2 4/7] mm: Use pmdp_get() for accessing PMD entries Message-ID: <202409190205.YJ5gtx3T-lkp@intel.com> References: <20240917073117.1531207-5-anshuman.khandual@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240917073117.1531207-5-anshuman.khandual@arm.com> X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 912831C0006 X-Stat-Signature: diqgte8agamegmtd1m6yomcg33g9bw38 X-Rspam-User: X-HE-Tag: 1726685865-891137 X-HE-Meta: U2FsdGVkX1/L2gUx5xI7aF0iWaeMv7xLJfyhBX5nQ4/Ila2xAUB+XXYfXNREaGVDVqzSUZpLQBQ4mE99NuRjwPQQhclAKCnk7lJXa4rCzHOPLZU3wPvlmoD9CqLOqop+ql3ITyx3CfzBxocxORfYsTsnVmLw4/MS5dlAoCEPrevE4P8cz6C5vuoIyy9z5ZAXG0v3itrcpcl9/ih2SMnC9qOxqVi+6EWhtNJlWcrGuTAvKh2jcMCtNRqjW9JWTmtxb6bSPtLdu6m7G46BeJdm0oBOewF/YCa3YnAL0SWLktcgga0pu+8QPCy55OuA6wOgGm+r8VqbgdarfbaS3IIO5v1qRCTGct72gZ0r0qRs0dqxuZcEPm5fOs8kGgqhT/moetmLFlS4077Fy6Vv6swE2t0pG6UhuzAnUKT70s2IemvJVMOO7BgILCcm+pBDNj85GhCWOiKy2qabJ3ZIOHgoW3vzGt4EE+kAXEDe/F6cGKrNYaMqErcOc9+jowH1CW4hcqFui73uIS38RJP+dZVqUvkq4TYFiEb6Y9nbMyQykIv2rUv4BL435QYrBfHsOvbH8RTPM9LeYoBrFkiugvafLTw2EEasjKCXF9f0Rhe3OnK2zyb4zdhXSUbOO+ehE7OtZoW+zw4/CDXR+aR1yWWVe4kABJ4D6huKmYLE3+r5pf3jwrbRApzRZbA+sT7+t4/OcpSEZZazO323UTZLjZy3oJG6+mjF/1T2jtRhqYwRvDMVf2NJKcoMPRyFhshAt+FTo0t2CFhImmFiwlNz0noZ3SpF9W9qyVCTK7F6gyWQR/hwY+cPegQaW6aLuG+7K8isKwyRrjSftuCIVIGEjhFWosIE4rGEIkXvBoH/evjWirbAR+xwGOZW75rsOATHYr8sSpJHnPYXs2Fh9MI4ZyYcUtlQ4ILkIvZOdxZ870k/KaV40xTJSsHLM+iCstNh6eT2ugVLvM8oOVMbT5Uf21v Pmov7MK8 sOW8vGWwMKriR95zUGUQo52bthm2qX0jHxbwIUMSGjpwjRp3V3CTfy+KZYXJi0RJRCpE8TQW+6kpWGviLHPk8EqMq7TZO4FzzmFUIeJF2lfIDIbYYBE8ZGdQ2O1d2QocMIJcBYbXSBYE3c47iCcmS0+8lcHX39N69SgIDIcsiNgdigf/4YJVq1nevz9cRMwSD4CnCLknI2S4n3g4VC5gcpSMu/f3OVuIXU41w/SFKCYJPPH4kpoNugliCi+CoJP/8BA89VEpDnVo5wp2TcXjBdq9TVeY9RwDn4G0uCHm7mdolD141uGUjGfAOSHAA3khrQiZ4F/JZas3OaVDRAzSeFpsVC15tmQXwE0o7v3n5Nf+asnCXV/J7L64qoBG8U971GQrSjUfa8E3OQH794PuMjrj6BjhGDr4QnVoD6NtqUlVBjb6tU7Q+sw/T/gDAZ7nOGA7Sd3G5RmSnGy6A3Z6CKgDZWUqT9swgEaN74e2OWInFpxaWA6fDfaXGCskv+FHNiP7K5nazJAhJdLozvvT3v3fn1g== 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-5-anshuman.khandual%40arm.com patch subject: [PATCH V2 4/7] mm: Use pmdp_get() for accessing PMD entries config: um-allnoconfig (https://download.01.org/0day-ci/archive/20240919/202409190205.YJ5gtx3T-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/20240919/202409190205.YJ5gtx3T-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/202409190205.YJ5gtx3T-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from mm/pgtable-generic.c:10: In file included from include/linux/pagemap.h:11: 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/pgtable-generic.c:10: In file included from include/linux/pagemap.h:11: 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/pgtable-generic.c:10: In file included from include/linux/pagemap.h:11: 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/pgtable-generic.c:54:2: error: cannot take the address of an rvalue of type 'pgd_t' 54 | pmd_ERROR(pmdp_get(pmd)); | ^~~~~~~~~~~~~~~~~~~~~~~~ include/asm-generic/pgtable-nopmd.h:36:28: note: expanded from macro 'pmd_ERROR' 36 | #define pmd_ERROR(pmd) (pud_ERROR((pmd).pud)) | ^~~~~~~~~~~~~~~~~~~~ include/asm-generic/pgtable-nopud.h:32:28: note: expanded from macro 'pud_ERROR' 32 | #define pud_ERROR(pud) (p4d_ERROR((pud).p4d)) | ^~~~~~~~~~~~~~~~~~~~ include/asm-generic/pgtable-nop4d.h:25:28: note: expanded from macro 'p4d_ERROR' 25 | #define p4d_ERROR(p4d) (pgd_ERROR((p4d).pgd)) | ^~~~~~~~~~~~~~~~~~~~ arch/um/include/asm/pgtable-2level.h:31:67: note: expanded from macro 'pgd_ERROR' 31 | printk("%s:%d: bad pgd %p(%08lx).\n", __FILE__, __LINE__, &(e), \ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ 32 | pgd_val(e)) | ~~~~~~~~~~~ include/linux/printk.h:465:60: note: expanded from macro 'printk' 465 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ include/linux/printk.h:437:19: note: expanded from macro 'printk_index_wrap' 437 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~~~~~~~~ 12 warnings and 1 error generated. vim +/pgd_t +54 mm/pgtable-generic.c 46 47 /* 48 * Note that the pmd variant below can't be stub'ed out just as for p4d/pud 49 * above. pmd folding is special and typically pmd_* macros refer to upper 50 * level even when folded 51 */ 52 void pmd_clear_bad(pmd_t *pmd) 53 { > 54 pmd_ERROR(pmdp_get(pmd)); 55 pmd_clear(pmd); 56 } 57 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki