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 7DE78C54E58 for ; Mon, 18 Mar 2024 22:00:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B8CC66B0082; Mon, 18 Mar 2024 18:00:23 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B3D466B0083; Mon, 18 Mar 2024 18:00:23 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A04386B0089; Mon, 18 Mar 2024 18:00:23 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 915F36B0082 for ; Mon, 18 Mar 2024 18:00:23 -0400 (EDT) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 5B885A02C5 for ; Mon, 18 Mar 2024 22:00:23 +0000 (UTC) X-FDA: 81911529126.27.C2D89BF Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by imf29.hostedemail.com (Postfix) with ESMTP id 4366F12001C for ; Mon, 18 Mar 2024 22:00:19 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=DYjPyi9a; spf=pass (imf29.hostedemail.com: domain of lkp@intel.com designates 198.175.65.10 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=1710799220; a=rsa-sha256; cv=none; b=MVX27R/oQfX53AcIXwUMXDu4xBa8jdAmCquUhK7sNUg+rDsbgLObgFeI7Y+dMiNoTDki9H G+M+V3imZ58SsUiE45pVOpolERhZfm2jnKtNiNVexZFwww+QXa1tFf38d0lNFLqXcoaBaA A04fDErwovb6bWm94MHRaVZt5azxcco= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=DYjPyi9a; spf=pass (imf29.hostedemail.com: domain of lkp@intel.com designates 198.175.65.10 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=1710799220; 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=Gnfvs9NZzUYCeI6+K0Xt8FPfehg2IhrzxbmbfqbAmqI=; b=azx/lxEROg0HeSh7BZPGEwlC5UySaL+4r9YshjpNChy0KNiCwE4Pxea6f9rfswWchyNoqX 21exxY3mHVVBnqSwGh3+zA4mUarO9y9RpgQem2iiGIWVuaiPJnLpTN7fb9NMH+uN4kJ4Np haxX/4iqem5Tqneo6ih93zcStftwSuk= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1710799221; x=1742335221; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=GH6BWPSigJxYv51qRplfTJgCiA30VVhLkJmJtG7tqU4=; b=DYjPyi9a9CuuslTfWLxAoZJjYBkfHwtqLH6XLtYuXizg92XS33zfvRzj 2QE5jWpZCNvSb/A+KG6trMWs7mEYHvZlUneh4fxpM1O3yvqyxD+/Z+/Ah +cx5Gp1oJpDu/IIBHo8O30wHVsAiD2UqM/mjCC0mpqeu6UXMaDOPjnpYd 7AEpV1q9cc+urH2lu6sBUnWuOmkqeUgJz7VI1AK9ffN5yruMxOWDJa/NN YfWZ/Lp59YyOGrIn85y+iNWJFaJHYOAtpolzYIga3hzqa6hzVET50TyIl kH4Ko3g3du+cduY567nhx3vvkkkzPYGQ4KX1x4s1RUkPegDBwalsJVHIv w==; X-IronPort-AV: E=McAfee;i="6600,9927,11017"; a="23095579" X-IronPort-AV: E=Sophos;i="6.07,135,1708416000"; d="scan'208";a="23095579" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Mar 2024 15:00:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,135,1708416000"; d="scan'208";a="13559456" Received: from lkp-server01.sh.intel.com (HELO b21307750695) ([10.239.97.150]) by fmviesa007.fm.intel.com with ESMTP; 18 Mar 2024 15:00:15 -0700 Received: from kbuild by b21307750695 with local (Exim 4.96) (envelope-from ) id 1rmL1g-000HG7-1M; Mon, 18 Mar 2024 22:00:12 +0000 Date: Tue, 19 Mar 2024 05:59:58 +0800 From: kernel test robot To: Aravinda Prasad , damon@lists.linux.dev, linux-mm@kvack.org, sj@kernel.org, linux-kernel@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, aravinda.prasad@intel.com, s2322819@ed.ac.uk, sandeep4.kumar@intel.com, ying.huang@intel.com, dave.hansen@intel.com, dan.j.williams@intel.com, sreenivas.subramoney@intel.com, antti.kervinen@intel.com, alexander.kanevskiy@intel.com Subject: Re: [PATCH v2 2/3] mm/damon: profiling enhancement Message-ID: <202403190550.8chO4Zt4-lkp@intel.com> References: <20240318132848.82686-3-aravinda.prasad@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240318132848.82686-3-aravinda.prasad@intel.com> X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 4366F12001C X-Stat-Signature: 515tpyp3y4ux971bzhe5gawebo1tonau X-Rspam-User: X-HE-Tag: 1710799219-610224 X-HE-Meta: U2FsdGVkX19GyZB67EOxuzNo8OGF3gS0EZubKIEqyfapY72D+YXiFX1HO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mePAKiMVQWlK4UsnwhNeFB4fj5KW8H+Q1S7GsI93/9ivnmVewjrPhcnJgKOWLZF3NV+lZbCOTYSyZyJ3QMOnSwpoaGBUDwbSLjT8AdlF4bKvaYUEf/fKBLxhWdQJs23QyIKgwejzAWEUb11EtpifTsA== 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 Aravinda, kernel test robot noticed the following build errors: [auto build test ERROR on akpm-mm/mm-everything] url: https://github.com/intel-lab-lkp/linux/commits/Aravinda-Prasad/mm-damon-mm-infrastructure-support/20240318-212723 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20240318132848.82686-3-aravinda.prasad%40intel.com patch subject: [PATCH v2 2/3] mm/damon: profiling enhancement config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20240319/202403190550.8chO4Zt4-lkp@intel.com/config) compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 8f68022f8e6e54d1aeae4ed301f5a015963089b7) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240319/202403190550.8chO4Zt4-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/202403190550.8chO4Zt4-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from mm/damon/vaddr.c:10: In file included from include/linux/highmem.h:10: In file included from include/linux/mm.h:2194: include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ In file included from mm/damon/vaddr.c:10: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: 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:13: In file included from arch/hexagon/include/asm/io.h:328: include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 547 | val = __raw_readb(PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 560 | 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/damon/vaddr.c:10: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: 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:13: In file included from arch/hexagon/include/asm/io.h:328: include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 573 | 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/damon/vaddr.c:10: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: 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:13: In file included from arch/hexagon/include/asm/io.h:328: include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 584 | __raw_writeb(value, PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 594 | __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 604 | __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ >> mm/damon/vaddr.c:78:6: error: call to undeclared function 'pgtable_l5_enabled'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 78 | if (pgtable_l5_enabled()) { | ^ 7 warnings and 1 error generated. vim +/pgtable_l5_enabled +78 mm/damon/vaddr.c 54 55 /* Pick the highest possible page table profiling level for addr 56 * in the region defined by start and end 57 */ 58 static int pick_profile_level(unsigned long start, unsigned long end, 59 unsigned long addr) 60 { 61 /* Start with PTE and check if higher levels can be picked */ 62 int level = 0; 63 64 if (!arch_has_hw_nonleaf_pmd_young()) 65 return level; 66 67 /* Check if PMD or higher can be picked, else use PTE */ 68 if (pmd_addr_start(addr, (start) - 1) < start 69 || pmd_addr_end(addr, (end) + 1) > end) 70 return level; 71 72 level++; 73 /* Check if PUD or higher can be picked, else use PMD */ 74 if (pud_addr_start(addr, (start) - 1) < start 75 || pud_addr_end(addr, (end) + 1) > end) 76 return level; 77 > 78 if (pgtable_l5_enabled()) { 79 level++; 80 /* Check if P4D or higher can be picked, else use PUD */ 81 if (p4d_addr_start(addr, (start) - 1) < start 82 || p4d_addr_end(addr, (end) + 1) > end) 83 return level; 84 } 85 86 level++; 87 /* Check if PGD can be picked, else return PUD level */ 88 if (pgd_addr_start(addr, (start) - 1) < start 89 || pgd_addr_end(addr, (end) + 1) > end) 90 return level; 91 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki