From: kernel test robot <lkp@intel.com>
To: Muchun Song <songmuchun@bytedance.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>,
Oscar Salvador <osalvador@suse.de>
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
Date: Mon, 20 Jun 2022 08:12:26 +0800 [thread overview]
Message-ID: <202206200857.ZpTFxNAY-lkp@intel.com> (raw)
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 <lkp@intel.com>
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
reply other threads:[~2022-06-20 0:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202206200857.ZpTFxNAY-lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=llvm@lists.linux.dev \
--cc=osalvador@suse.de \
--cc=songmuchun@bytedance.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox