From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 70D231C9DFF; Wed, 18 Sep 2024 18:57:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726685866; cv=none; b=Ia+eOlCUXIf64JC8tn75i2go7fkrKLOzigKKNiHWAEy4cHvSCEpBfV5zK352OyTvJ/zGrrd2qIygc+jLjccGufcLxJQCsLFwt2gxaPvBRNo/AAb4P/WPTYjPpaq1wZa+KiEbDgJGjVkO0Dc48ySU9vvVTvxfHvSSm2uAyHoSZJE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726685866; c=relaxed/simple; bh=uT4pFaHDwbX4JpOoyZm9j/R5DoXtXSFmvct+549geck=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=j8N98bwIwSoXdq9daX8GaStMFwg3CNk0Za7Ac3vAyHl1M5unVqtwDTRkcPKgM4IqvV2qrlQ4ljeema+nR+XfrCOcTT1TR5x0trzMdeZ3Am6GVCSMjK6t8+J312XwJzpxjBEuO+d97U/TuyB48h0VOXuVObzQBuj+4v7GKTH/8xE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=kETt4hDT; arc=none smtp.client-ip=198.175.65.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="kETt4hDT" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1726685865; x=1758221865; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=uT4pFaHDwbX4JpOoyZm9j/R5DoXtXSFmvct+549geck=; b=kETt4hDTPg77IO76d5r1DjFZXO272KzCPvlWk1MXFqtKVwR5IxrAIT4n KPUkKfoD7ScyX/Opod+WSYhDUDu9SzpMbjrrpWfPKaTac5Jzj2wfOfNuJ zh30fkTBuHfM7VklXVX9gmZlxtPCNXReHlA69bs7KybRU6yzUIiy6lkOM rswI5egHgU9jbSFw+NXNBk11tiFfdsCX8k7rYojIf7/PSQJuN7bJDfFKU 1F1LL2cB2sZO4HEBh6bKqG/9g0MrXZAwtDMplaQrDMVos0bY2+YkdI5au rKxKVO62hihwQfbFEhh8IxYgCkrwDgt4mMq0zfVhSWay0era5KBFGTLBw A==; X-CSE-ConnectionGUID: 04qVlnIzR72TilXHbALLSQ== X-CSE-MsgGUID: 0KElYuPZSBOknubA5QcEKQ== X-IronPort-AV: E=McAfee;i="6700,10204,11199"; a="25739632" X-IronPort-AV: E=Sophos;i="6.10,239,1719903600"; d="scan'208";a="25739632" 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> Precedence: bulk X-Mailing-List: linux-perf-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240917073117.1531207-5-anshuman.khandual@arm.com> 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