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 16375C433EF for ; Mon, 20 Jun 2022 00:13:21 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 57C586B0072; Sun, 19 Jun 2022 20:13:21 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 52D106B0073; Sun, 19 Jun 2022 20:13:21 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3F4146B0074; Sun, 19 Jun 2022 20:13:21 -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 2C7716B0072 for ; Sun, 19 Jun 2022 20:13:21 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id CB11D33E47 for ; Mon, 20 Jun 2022 00:13:20 +0000 (UTC) X-FDA: 79596689760.18.75BA946 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by imf14.hostedemail.com (Postfix) with ESMTP id A4A2510000D for ; Mon, 20 Jun 2022 00:13:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655683999; x=1687219999; h=date:from:to:cc:subject:message-id:mime-version; bh=2vK1w86ELU1udupnQ2GwMp+TJkzuOBTJsz31heHbA5c=; b=W8fDxLgUKNplCz4zQ6pcOo+a7u4ZMnrwLDh+eS2zQbTFjvmdGV8kdC8L cgYnYhzsmEbVSAW7Zob20WFntX4Tp3Oj6+HhABkNdlOAHD9YArhvhjkEM 8SB+FJlY64TAIeYS9VKQXXzXK4UHF7SaQlj0KE+2uPS8waPtXzG2s753T zpc5c0i5tiVp6siMWYACjpvldtJ8uJh8wE4I8Y2jbQtgcr2AT6AAdc1pb Sm9f9yYXK0eybFkIWdYpQ0nAAmd1rl0cQdIZCbu31nsKbsUTivqZRXoJT S/jB/tu2TxM1vBHJaPTaSge9dkjQmJLXv0Hp7qXR0aTZY6zW+HROH78Qr Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10380"; a="366097217" X-IronPort-AV: E=Sophos;i="5.92,306,1650956400"; d="scan'208";a="366097217" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jun 2022 17:13:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,306,1650956400"; d="scan'208";a="642852509" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by fmsmga008.fm.intel.com with ESMTP; 19 Jun 2022 17:13:14 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1o352Y-000RgN-2R; Mon, 20 Jun 2022 00:13:14 +0000 Date: Mon, 20 Jun 2022 08:12:26 +0800 From: kernel test robot To: Muchun Song Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Andrew Morton , Linux Memory Management List , Oscar Salvador Subject: [akpm-mm:mm-unstable 260/261] mm/hugetlb_vmemmap.c:110:17: error: call to undeclared function 'sparse_decode_mem_map'; ISO C99 and later do not support implicit function declarations Message-ID: <202206200857.ZpTFxNAY-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1655684000; 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=un3knxxTEhLeDV+b8Wso1jafHtQPaigr53Y1LtAfov4=; b=P4VuXfqPO4izWxhLG2HoXIowr9WIj87hQ8TDt5jrrbIj3t7jWM2eCfjRa9mwMq1fKvCqM7 uLwQ5NUmlr64vMBKOtedlL5bIKdWxUanUUtk1tHz/j2aJCdACkcvHJwigJOFAAWQYTOWWB tsMRH7aCXmMR1yJioreLl5eiuIu+9FQ= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=W8fDxLgU; spf=none (imf14.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.43) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1655684000; a=rsa-sha256; cv=none; b=Uyx/XF7nADgjK2HZ5BDUMuNXXHmM+c/G5v/mFWnpTS0XB1K+88tWE/4666U/D8JwKnKIub y7VkHt0vKxqKVH8uOifDIzzry0ANi/1gwri47SadhlJoy3A9YQ0BWm+p+EiPHIHTNElioO 2wA0t/2eVnOrLr1RoFK2ejkU/+/jMtQ= X-Stat-Signature: b8iruch9qkyk8cid4k4meonoexqsswzs X-Rspamd-Queue-Id: A4A2510000D X-Rspamd-Server: rspam11 X-Rspam-User: Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=W8fDxLgU; spf=none (imf14.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.43) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-HE-Tag: 1655683999-795135 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: tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable head: 882be1ed6b1b5073fc88552181b99bd2b9c0031f commit: 10a76873547090b69a8c47788065a24696b152c3 [260/261] mm: memory_hotplug: make hugetlb_optimize_vmemmap compatible with memmap_on_memory config: x86_64-randconfig-a013-20220620 (https://download.01.org/0day-ci/archive/20220620/202206200857.ZpTFxNAY-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project af6d2a0b6825e71965f3e2701a63c239fa0ad70f) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/commit/?id=10a76873547090b69a8c47788065a24696b152c3 git remote add akpm-mm https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git git fetch --no-tags akpm-mm mm-unstable git checkout 10a76873547090b69a8c47788065a24696b152c3 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All error/warnings (new ones prefixed by >>): >> mm/hugetlb_vmemmap.c:110:17: error: call to undeclared function 'sparse_decode_mem_map'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] vmemmap_page = sparse_decode_mem_map(ms->section_mem_map, ^ >> mm/hugetlb_vmemmap.c:110:15: warning: incompatible integer to pointer conversion assigning to 'struct page *' from 'int' [-Wint-conversion] vmemmap_page = sparse_decode_mem_map(ms->section_mem_map, ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning and 1 error generated. vim +/sparse_decode_mem_map +110 mm/hugetlb_vmemmap.c 98 99 static unsigned int vmemmap_optimizable_pages(struct hstate *h, 100 struct page *head) 101 { 102 struct mem_section *ms; 103 struct page *vmemmap_page; 104 unsigned long pfn = page_to_pfn(head); 105 106 if (READ_ONCE(vmemmap_optimize_mode) == VMEMMAP_OPTIMIZE_OFF) 107 return 0; 108 109 ms = __pfn_to_section(pfn); > 110 vmemmap_page = sparse_decode_mem_map(ms->section_mem_map, 111 pfn_to_section_nr(pfn)); 112 /* 113 * Only the vmemmap pages' vmemmap may be marked as VmemmapSelfHosted. 114 * 115 * Due to HugeTLB alignment requirements, and the vmemmap pages being 116 * at the start of the hotplugged memory region. Checking any vmemmap 117 * page's vmemmap is fine. 118 * 119 * [ hotplugged memory ] 120 * [ vmemmap ][ usable memory ] 121 * ^ | | | 122 * +---+ | | 123 * ^ | | 124 * +--------+ | 125 * ^ | 126 * +-----------------+ 127 */ 128 if (PageVmemmapSelfHosted(vmemmap_page)) 129 return 0; 130 131 return hugetlb_optimize_vmemmap_pages(h); 132 } 133 -- 0-DAY CI Kernel Test Service https://01.org/lkp