* [mmotm:master 265/276] mm/hmm.c:815:2: error: implicit declaration of function 'arch_remove_memory'
@ 2017-04-09 6:28 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2017-04-09 6:28 UTC (permalink / raw)
To: Jérôme Glisse
Cc: kbuild-all, Johannes Weiner, Evgeny Baskakov, John Hubbard,
Mark Hairgrove, Sherry Cheung, Subhash Gutti, Andrew Morton,
Linux Memory Management List
[-- Attachment #1: Type: text/plain, Size: 2136 bytes --]
tree: git://git.cmpxchg.org/linux-mmotm.git master
head: 5b220005fda0593464fc4549eea586e597bf783c
commit: 89cc4c46458ccdfab15b2fe94a5645766d5091aa [265/276] mm/hmm/devmem: device memory hotplug using ZONE_DEVICE
config: sparc64-allyesconfig (attached as .config)
compiler: sparc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 89cc4c46458ccdfab15b2fe94a5645766d5091aa
# save the attached .config to linux build tree
make.cross ARCH=sparc64
All errors (new ones prefixed by >>):
mm/hmm.c: In function 'hmm_vma_walk_pmd':
mm/hmm.c:369:53: error: macro "pte_index" requires 2 arguments, but only 1 given
unsigned long pfn = pmd_pfn(pmd) + pte_index(addr);
^
mm/hmm.c:369:39: error: 'pte_index' undeclared (first use in this function)
unsigned long pfn = pmd_pfn(pmd) + pte_index(addr);
^~~~~~~~~
mm/hmm.c:369:39: note: each undeclared identifier is reported only once for each function it appears in
mm/hmm.c: In function 'hmm_devmem_release':
>> mm/hmm.c:815:2: error: implicit declaration of function 'arch_remove_memory' [-Werror=implicit-function-declaration]
arch_remove_memory(align_start, align_size, devmem->pagemap.type);
^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/arch_remove_memory +815 mm/hmm.c
809
810 /* pages are dead and unused, undo the arch mapping */
811 align_start = resource->start & ~(SECTION_SIZE - 1);
812 align_size = ALIGN(resource_size(resource), SECTION_SIZE);
813
814 mem_hotplug_begin();
> 815 arch_remove_memory(align_start, align_size, devmem->pagemap.type);
816 mem_hotplug_done();
817
818 untrack_pfn(NULL, PHYS_PFN(align_start), align_size);
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 51294 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-04-09 6:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-09 6:28 [mmotm:master 265/276] mm/hmm.c:815:2: error: implicit declaration of function 'arch_remove_memory' kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox