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 968CCD2446E for ; Fri, 11 Oct 2024 04:43:05 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0029F6B0092; Fri, 11 Oct 2024 00:43:05 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EF5106B0093; Fri, 11 Oct 2024 00:43:04 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D219A6B0095; Fri, 11 Oct 2024 00:43:04 -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 B31E86B0092 for ; Fri, 11 Oct 2024 00:43:04 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id D59F2A0752 for ; Fri, 11 Oct 2024 04:42:56 +0000 (UTC) X-FDA: 82660076646.01.ABFE4FB Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) by imf15.hostedemail.com (Postfix) with ESMTP id 43F7BA0009 for ; Fri, 11 Oct 2024 04:43:00 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=TfEMtkJl; spf=pass (imf15.hostedemail.com: domain of lkp@intel.com designates 198.175.65.21 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=1728621599; 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=6ueJlU84+7U4j+zBBLEI9J39OkJAqCNlP6eXO48ylO0=; b=lS+CSWVN9uGuipr1g57QxhK68bPahd1zMp5fOkQOeDE9FbhJhfzmxDF0PpJ3GYC51fHqCe Ls6AIASkSAfSB8kSg003v/sQd1lBi8MkgsxtDs+XoHPPJhKuINVDigzhNDNUq/neLa9t/B RUt8GbzNVZykwlXqwe0+ziIGEAStDUQ= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=TfEMtkJl; spf=pass (imf15.hostedemail.com: domain of lkp@intel.com designates 198.175.65.21 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=1728621599; a=rsa-sha256; cv=none; b=3vwewgw/DJdjV/qM9reTXIYSeFNBIMce2d7ta/wxBUmvROm4BR8neoYwbflP/5oabUrgGQ FC7fruT3f1UaKzvRQXCgG0AoGMH2cc2rwRVnpVuBssYO2eu9L99iHqBZy9OTkGHe0Jlf7v qAs0y7/1J6oJTTYbp8XRKQx4qIeuCxE= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1728621782; x=1760157782; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=xq2xYxCeEvzyDD2ePxSl33QtiL+L//1dLF/xG9ewvDY=; b=TfEMtkJlLlSiTVcTcXg0h6MuxW08T8dYMxH64MkxM/FSGMXvGvhbSg7N 5VitZVkFXvRS/kJienJiBQkf4H3xY5F5bVE5meA8ddEIk4W1OWG56WRkm DJWwh7QZSr/0eLvFgLbhQAOELQrW5vUThAKJJo393J9nJXABE/w1jSofq FkT7mLyIz+Cl4+5ELxK4cxv/B1RGbxh2SW2RljkHHKC19hurczGF4vtvH FxzX/wDBQplZqCezSUbh5FHKMlFBgku3R/yfGAie6SgNaKsbx89EQK6h5 2MZajkCgHk+TDQtCZdDxmxriC8xJLBCbfhqCPTaEgD1vPTwXX32obCLrk A==; X-CSE-ConnectionGUID: myTotxZTRtugqZVvlizYvw== X-CSE-MsgGUID: jpZbTQdiRLezcD04mSn3bg== X-IronPort-AV: E=McAfee;i="6700,10204,11221"; a="27959201" X-IronPort-AV: E=Sophos;i="6.11,194,1725346800"; d="scan'208";a="27959201" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Oct 2024 21:42:58 -0700 X-CSE-ConnectionGUID: pbRcFdqLRZmQX/JmBKPFNg== X-CSE-MsgGUID: /8q1Oky7SJmnO1TALXDWhw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,194,1725346800"; d="scan'208";a="76712344" Received: from lkp-server01.sh.intel.com (HELO a48cf1aa22e8) ([10.239.97.150]) by orviesa010.jf.intel.com with ESMTP; 10 Oct 2024 21:42:56 -0700 Received: from kbuild by a48cf1aa22e8 with local (Exim 4.96) (envelope-from ) id 1sz7UL-000Bod-0J; Fri, 11 Oct 2024 04:42:53 +0000 Date: Fri, 11 Oct 2024 12:42:35 +0800 From: kernel test robot To: Bibo Mao , Huacai Chen , Andrey Ryabinin , Andrew Morton Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , David Hildenbrand , Barry Song , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com Subject: Re: [PATCH 2/4] mm/sparse-vmemmap: set pte_init when vmemmap is created Message-ID: <202410111254.kon5pPzX-lkp@intel.com> References: <20241010035048.3422527-3-maobibo@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241010035048.3422527-3-maobibo@loongson.cn> X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 43F7BA0009 X-Stat-Signature: 8bwd3ptn3o67ap5uezbnro3uxezujgbm X-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PEgt5Yi8HoVgVqk8qpF0KRmK9CwV1HuimwMeloimFxiNFtmLMYOy6CQhWQjHdLQ5KBSjAhbMayjEQn2XEdhcpFBqHCkpPXHKQ9DfTifd8H5lQPmcnQfS5cL709xkWfIJqpavDi5nlx0fVIaj5FxuHjwvl+Zc/Nty1G9EwX+z9ea6kJef/h6qkA1uhOiqgiYYefozeNrODGlZx+oPJf1j97RYYQq6tbnh+z0fq1/JZGNnWpykCjirkZTEMBo23dq761SZsIFLzTq4u+O4bb6+fUBMkIOFdT12BlRpVQB4hKtzZIveP7xuUB3E54QsiOQDt/EVy9ymGQqryF9Q5tr2e1QiggHvJQo/EoogAJsXuMsZ09c1vYy1BJYWdRhLtXBe8Zr4lT9qShwCKhaJcwgJlu6QE= 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 Bibo, kernel test robot noticed the following build warnings: [auto build test WARNING on 87d6aab2389e5ce0197d8257d5f8ee965a67c4cd] url: https://github.com/intel-lab-lkp/linux/commits/Bibo-Mao/LoongArch-Set-pte-entry-with-PAGE_GLOBAL-for-kernel-space/20241010-115120 base: 87d6aab2389e5ce0197d8257d5f8ee965a67c4cd patch link: https://lore.kernel.org/r/20241010035048.3422527-3-maobibo%40loongson.cn patch subject: [PATCH 2/4] mm/sparse-vmemmap: set pte_init when vmemmap is created config: s390-allnoconfig (https://download.01.org/0day-ci/archive/20241011/202410111254.kon5pPzX-lkp@intel.com/config) compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 70e0a7e7e6a8541bcc46908c592eed561850e416) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241011/202410111254.kon5pPzX-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/202410111254.kon5pPzX-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from mm/sparse-vmemmap.c:21: In file included from include/linux/mm.h:2213: include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ In file included from mm/sparse-vmemmap.c:23: In file included from include/linux/memblock.h:13: In file included from arch/s390/include/asm/dma.h:5: In file included from include/linux/io.h:14: In file included from arch/s390/include/asm/io.h:93: 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/big_endian.h:37:59: note: expanded from macro '__le16_to_cpu' 37 | #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x)) | ^ include/uapi/linux/swab.h:102:54: note: expanded from macro '__swab16' 102 | #define __swab16(x) (__u16)__builtin_bswap16((__u16)(x)) | ^ In file included from mm/sparse-vmemmap.c:23: In file included from include/linux/memblock.h:13: In file included from arch/s390/include/asm/dma.h:5: In file included from include/linux/io.h:14: In file included from arch/s390/include/asm/io.h:93: 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/big_endian.h:35:59: note: expanded from macro '__le32_to_cpu' 35 | #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) | ^ include/uapi/linux/swab.h:115:54: note: expanded from macro '__swab32' 115 | #define __swab32(x) (__u32)__builtin_bswap32((__u32)(x)) | ^ In file included from mm/sparse-vmemmap.c:23: In file included from include/linux/memblock.h:13: In file included from arch/s390/include/asm/dma.h:5: In file included from include/linux/io.h:14: In file included from arch/s390/include/asm/io.h:93: 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/sparse-vmemmap.c:187:23: warning: no previous prototype for function 'kernel_pte_init' [-Wmissing-prototypes] 187 | void __weak __meminit kernel_pte_init(void *addr) | ^ mm/sparse-vmemmap.c:187:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 187 | void __weak __meminit kernel_pte_init(void *addr) | ^ | static 14 warnings generated. vim +/kernel_pte_init +187 mm/sparse-vmemmap.c 186 > 187 void __weak __meminit kernel_pte_init(void *addr) 188 { 189 } 190 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki