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 AC37CC021B8 for ; Wed, 26 Feb 2025 09:48:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 00F56280001; Wed, 26 Feb 2025 04:48:00 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id F00596B0099; Wed, 26 Feb 2025 04:47:59 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D7A73280001; Wed, 26 Feb 2025 04:47:59 -0500 (EST) 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 B7ABF6B0098 for ; Wed, 26 Feb 2025 04:47:59 -0500 (EST) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 533B6B578A for ; Wed, 26 Feb 2025 09:47:59 +0000 (UTC) X-FDA: 83161619478.10.FA913AB Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) by imf23.hostedemail.com (Postfix) with ESMTP id 26729140005 for ; Wed, 26 Feb 2025 09:47:55 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=BTLH6I+j; spf=pass (imf23.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=1740563277; 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: references:dkim-signature; bh=1JZCPQhwV4/jobvD/MSs/nEo5Fj3tSRyZH3iicIx/2c=; b=YK3N1ZkRvjLVsWUfHgHQZEiPs+aNkOObczHnY5901N7u+KApvyx1jdaReNw12oMcdjEW2N TYCkaAH+RIrBVKPihgbYM/Sb/9/XFADevw6/5iFNN8Wc/l2TsQyZ/I3Iz4leRaL9HtG8AK QKZROS6s02u1V6z1A0FH+fZ1Add6xok= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=BTLH6I+j; spf=pass (imf23.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=1740563277; a=rsa-sha256; cv=none; b=2gvK3eiJXlkVvsRrXpIPR9ZTwC/7BrxDugBT0zoe8/5qpqJhuE9uxtfmMSifEkuoJq7oQq hx+bA7WnbECyktu67SfVs1yAmkLSDb1ho7G8jhD2LH4yVqluUO/oLtlKCheGuupdGRP/qi I21sjWf8w5Z82GdVBeaAgOA10QAvSw8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1740563276; x=1772099276; h=date:from:to:cc:subject:message-id:mime-version; bh=6puDstHpwfkJlpKn7JlWAejjNwhdFTiriKarCCat0OM=; b=BTLH6I+j1SWWoqf8JaPDUKYyi8fNBFoxnqTBzPEK76T34SyRz97uWm77 CNcFBus+fPIzvUW8m7A4G8KWzJG9HinzGOSm73Ey7Ehx+qsBUvPMCbeEI l3PmXkYykiYokxCJZ4UFaeaGdcriHrLEGvQzAhhAQkmU8jHxKkPfWqVL2 8IsZYxKsLIEJfoA601bpW3fVTQ+odfO4yAmaiZPAb3rMHCWWkzndVRWT0 SY+uWC4zidghJuivxCS/YNNPdbqtHDfYn3M3SQ6hK088qS26fxLaiF+/L UW7HsFz2lCbyxl7C0PraywO2G/O4/bohbvzz+YL/o4m+9+Ee2EtJEV4BU Q==; X-CSE-ConnectionGUID: qymG5cWzS7+VcBVQ7Xf83Q== X-CSE-MsgGUID: SKlQt544RZi6TpXgEbeyIg== X-IronPort-AV: E=McAfee;i="6700,10204,11356"; a="41316461" X-IronPort-AV: E=Sophos;i="6.13,316,1732608000"; d="scan'208";a="41316461" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Feb 2025 01:47:55 -0800 X-CSE-ConnectionGUID: HDXTdmQmT/yZBGzrEPF6YA== X-CSE-MsgGUID: KIrQSNBUQZqVOR7L/8LASg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.13,316,1732608000"; d="scan'208";a="139881667" Received: from lkp-server02.sh.intel.com (HELO 76cde6cc1f07) ([10.239.97.151]) by fmviesa002.fm.intel.com with ESMTP; 26 Feb 2025 01:47:53 -0800 Received: from kbuild by 76cde6cc1f07 with local (Exim 4.96) (envelope-from ) id 1tnE18-000BUH-3B; Wed, 26 Feb 2025 09:47:50 +0000 Date: Wed, 26 Feb 2025 17:46:54 +0800 From: kernel test robot To: Luiz Capitulino Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Andrew Morton , Linux Memory Management List Subject: [linux-next:master 5933/6583] include/linux/page_ext.h:131:20: error: call to undeclared function 'page_to_section'; ISO C99 and later do not support implicit function declarations Message-ID: <202502261733.Ma0eUGKJ-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 26729140005 X-Stat-Signature: auzpydmbzjtg87eezznr75wkbqit9qfm X-Rspam-User: X-HE-Tag: 1740563275-729618 X-HE-Meta: U2FsdGVkX19u8UDg4cpv98EKtYDUpTfrboehOr0FrFcAphKGtiWWQWl1bvBzhNiXgqXnyFRumiVm7b5cJiPQ2ooqWgziWdXoyIr4G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dKdmJbVgQINw8lnBEfGLrSghwXzPoJzDi8woLzmAMkd7zNKR27w7JlG2d985+2j8XBCbO1au7Rr0Al9aGQICRIsoxBeFI8A9gt9jLr9+G44rbipIKVqmLMGbq5LpIJqPp4MY/436zKCidIbyxTFnhoOWiAYLP1ShLtZl9RQ3nkhoyE0TVDH30O8Oui3EzINUjVQP6jglqpNn3i+ZiYERCPQuCwPQ== 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: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 8433c776e1eb1371f5cd40b5fd3a61f9c7b7f3ad commit: a2d6e9c1a867bb9f13943cb8483e2ab85b630bcd [5933/6583] mm: page_ext: add an iteration API for page extensions config: i386-buildonly-randconfig-004-20250226 (https://download.01.org/0day-ci/archive/20250226/202502261733.Ma0eUGKJ-lkp@intel.com/config) compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250226/202502261733.Ma0eUGKJ-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/202502261733.Ma0eUGKJ-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from arch/x86/kernel/asm-offsets.c:14: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:21: In file included from include/linux/mm.h:8: In file included from include/linux/pgalloc_tag.h:12: >> include/linux/page_ext.h:131:20: error: call to undeclared function 'page_to_section'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 131 | iter->start_pfn = page_to_pfn(page); | ^ include/asm-generic/memory_model.h:64:21: note: expanded from macro 'page_to_pfn' 64 | #define page_to_pfn __page_to_pfn | ^ include/asm-generic/memory_model.h:47:14: note: expanded from macro '__page_to_pfn' 47 | int __sec = page_to_section(__pg); \ | ^ include/linux/page_ext.h:131:20: note: did you mean '__nr_to_section'? include/asm-generic/memory_model.h:64:21: note: expanded from macro 'page_to_pfn' 64 | #define page_to_pfn __page_to_pfn | ^ include/asm-generic/memory_model.h:47:14: note: expanded from macro '__page_to_pfn' 47 | int __sec = page_to_section(__pg); \ | ^ include/linux/mmzone.h:1907:35: note: '__nr_to_section' declared here 1907 | static inline struct mem_section *__nr_to_section(unsigned long nr) | ^ In file included from arch/x86/kernel/asm-offsets.c:14: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:21: >> include/linux/mm.h:1965:29: error: static declaration of 'page_to_section' follows non-static declaration 1965 | static inline unsigned long page_to_section(const struct page *page) | ^ include/linux/page_ext.h:131:20: note: previous implicit declaration is here 131 | iter->start_pfn = page_to_pfn(page); | ^ include/asm-generic/memory_model.h:64:21: note: expanded from macro 'page_to_pfn' 64 | #define page_to_pfn __page_to_pfn | ^ include/asm-generic/memory_model.h:47:14: note: expanded from macro '__page_to_pfn' 47 | int __sec = page_to_section(__pg); \ | ^ In file included from arch/x86/kernel/asm-offsets.c:14: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:21: In file included from include/linux/mm.h:2302: 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_" | ~~~~~~~~~~~ ^ ~~~ 1 warning and 2 errors generated. make[3]: *** [scripts/Makefile.build:102: arch/x86/kernel/asm-offsets.s] Error 1 shuffle=1287424088 make[3]: Target 'prepare' not remade because of errors. make[2]: *** [Makefile:1264: prepare0] Error 2 shuffle=1287424088 make[2]: Target 'prepare' not remade because of errors. make[1]: *** [Makefile:251: __sub-make] Error 2 shuffle=1287424088 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:251: __sub-make] Error 2 shuffle=1287424088 make: Target 'prepare' not remade because of errors. vim +/page_to_section +131 include/linux/page_ext.h 118 119 /** 120 * page_ext_iter_begin() - Prepare for iterating through page extensions. 121 * @iter: page extension iterator. 122 * @page: The page we're interested in. 123 * 124 * Must be called with RCU read lock taken. 125 * 126 * Return: NULL if no page_ext exists for this page. 127 */ 128 static inline struct page_ext *page_ext_iter_begin(struct page_ext_iter *iter, struct page *page) 129 { 130 iter->index = 0; > 131 iter->start_pfn = page_to_pfn(page); 132 iter->page_ext = lookup_page_ext(page); 133 134 return iter->page_ext; 135 } 136 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki