arch/riscv//mm/init.c:68:20: error: 'PCI_IO_END' undeclared; did you mean 'POISON_END'?
From: kbuild test robot
Date: Fri Jan 31 2020 - 06:11:51 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 35c222fd323629cf2e834eb8aff77058856ffdda
commit: 8eace9fb39605f0e201223fd34306ba3b53969b7 Merge branch 'next/misc2' into for-next
date: 10 weeks ago
config: riscv-randconfig-a001-20200131 (attached as .config)
compiler: riscv64-linux-gcc (GCC) 7.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 8eace9fb39605f0e201223fd34306ba3b53969b7
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>
All errors (new ones prefixed by >>):
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:6,
from include/linux/mm.h:10,
from arch/riscv//mm/init.c:8:
include/linux/highmem.h: In function 'kmap_to_page':
include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared (first use in this function); did you mean 'vm_mmap'?
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/page.h:112:30: note: in expansion of macro 'pfn_to_page'
#define virt_to_page(vaddr) (pfn_to_page(virt_to_pfn(vaddr)))
^~~~~~~~~~~
include/linux/highmem.h:75:9: note: in expansion of macro 'virt_to_page'
return virt_to_page(addr);
^~~~~~~~~~~~
include/linux/scatterlist.h: In function 'sg_set_buf':
include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared (first use in this function); did you mean 'vm_mmap'?
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/page.h:112:30: note: in expansion of macro 'pfn_to_page'
#define virt_to_page(vaddr) (pfn_to_page(virt_to_pfn(vaddr)))
^~~~~~~~~~~
include/linux/scatterlist.h:145:18: note: in expansion of macro 'virt_to_page'
sg_set_page(sg, virt_to_page(buf), buflen, offset_in_page(buf));
^~~~~~~~~~~~
In file included from arch/riscv/include/asm/page.h:12:0,
from arch/riscv/include/asm/thread_info.h:11,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:6,
from include/linux/mm.h:10,
from arch/riscv//mm/init.c:8:
include/linux/scatterlist.h: In function 'sg_phys':
include/asm-generic/memory_model.h:55:54: error: 'vmemmap' undeclared (first use in this function); did you mean 'vm_mmap'?
#define __page_to_pfn(page) (unsigned long)((page) - vmemmap)
^
include/linux/pfn.h:21:36: note: in definition of macro 'PFN_PHYS'
#define PFN_PHYS(x) ((phys_addr_t)(x) << PAGE_SHIFT)
^
arch/riscv/include/asm/page.h:115:29: note: in expansion of macro 'pfn_to_phys'
#define page_to_phys(page) (pfn_to_phys(page_to_pfn(page)))
^~~~~~~~~~~
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
#define page_to_pfn __page_to_pfn
^~~~~~~~~~~~~
arch/riscv/include/asm/page.h:115:41: note: in expansion of macro 'page_to_pfn'
#define page_to_phys(page) (pfn_to_phys(page_to_pfn(page)))
^~~~~~~~~~~
include/linux/scatterlist.h:224:9: note: in expansion of macro 'page_to_phys'
return page_to_phys(sg_page(sg)) + sg->offset;
^~~~~~~~~~~~
In file included from arch/riscv/include/asm/page.h:131:0,
from arch/riscv/include/asm/thread_info.h:11,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:6,
from include/linux/mm.h:10,
from arch/riscv//mm/init.c:8:
include/linux/scatterlist.h: In function 'sg_page_iter_page':
include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared (first use in this function); did you mean 'vm_mmap'?
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
include/linux/mm.h:213:26: note: in expansion of macro 'pfn_to_page'
#define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n))
^~~~~~~~~~~
include/linux/scatterlist.h:384:9: note: in expansion of macro 'nth_page'
return nth_page(sg_page(piter->sg), piter->sg_pgoffset);
^~~~~~~~
arch/riscv//mm/init.c: In function 'print_vm_layout':
arch/riscv//mm/init.c:65:37: error: 'FIXADDR_START' undeclared (first use in this function); did you mean 'XAS_RESTART'?
print_mlk("fixmap", (unsigned long)FIXADDR_START,
^~~~~~~~~~~~~
XAS_RESTART
arch/riscv//mm/init.c:66:20: error: 'FIXADDR_TOP' undeclared (first use in this function); did you mean 'FIXADDR_START'?
(unsigned long)FIXADDR_TOP);
^~~~~~~~~~~
FIXADDR_START
arch/riscv//mm/init.c:67:37: error: 'PCI_IO_START' undeclared (first use in this function); did you mean 'RQF_IO_STAT'?
print_mlm("pci io", (unsigned long)PCI_IO_START,
^~~~~~~~~~~~
RQF_IO_STAT
>> arch/riscv//mm/init.c:68:20: error: 'PCI_IO_END' undeclared (first use in this function); did you mean 'POISON_END'?
(unsigned long)PCI_IO_END);
^~~~~~~~~~
POISON_END
arch/riscv//mm/init.c:69:38: error: 'VMEMMAP_START' undeclared (first use in this function); did you mean 'MEMMAP_EARLY'?
print_mlm("vmemmap", (unsigned long)VMEMMAP_START,
^~~~~~~~~~~~~
MEMMAP_EARLY
arch/riscv//mm/init.c:70:20: error: 'VMEMMAP_END' undeclared (first use in this function); did you mean 'MEMREMAP_ENC'?
(unsigned long)VMEMMAP_END);
^~~~~~~~~~~
MEMREMAP_ENC
arch/riscv//mm/init.c:72:20: error: 'VMALLOC_END' undeclared (first use in this function); did you mean 'VM_LOCKED'?
(unsigned long)VMALLOC_END);
^~~~~~~~~~~
VM_LOCKED
vim +68 arch/riscv//mm/init.c
2cc6c4a0da4ab1 Yash Shah 2019-11-18 61
2cc6c4a0da4ab1 Yash Shah 2019-11-18 62 static void print_vm_layout(void)
2cc6c4a0da4ab1 Yash Shah 2019-11-18 63 {
2cc6c4a0da4ab1 Yash Shah 2019-11-18 64 pr_notice("Virtual kernel memory layout:\n");
2cc6c4a0da4ab1 Yash Shah 2019-11-18 65 print_mlk("fixmap", (unsigned long)FIXADDR_START,
2cc6c4a0da4ab1 Yash Shah 2019-11-18 @66 (unsigned long)FIXADDR_TOP);
2cc6c4a0da4ab1 Yash Shah 2019-11-18 67 print_mlm("pci io", (unsigned long)PCI_IO_START,
2cc6c4a0da4ab1 Yash Shah 2019-11-18 @68 (unsigned long)PCI_IO_END);
2cc6c4a0da4ab1 Yash Shah 2019-11-18 69 print_mlm("vmemmap", (unsigned long)VMEMMAP_START,
2cc6c4a0da4ab1 Yash Shah 2019-11-18 70 (unsigned long)VMEMMAP_END);
2cc6c4a0da4ab1 Yash Shah 2019-11-18 71 print_mlm("vmalloc", (unsigned long)VMALLOC_START,
2cc6c4a0da4ab1 Yash Shah 2019-11-18 72 (unsigned long)VMALLOC_END);
2cc6c4a0da4ab1 Yash Shah 2019-11-18 73 print_mlm("lowmem", (unsigned long)PAGE_OFFSET,
2cc6c4a0da4ab1 Yash Shah 2019-11-18 74 (unsigned long)high_memory);
2cc6c4a0da4ab1 Yash Shah 2019-11-18 75 }
2cc6c4a0da4ab1 Yash Shah 2019-11-18 76 #else
2cc6c4a0da4ab1 Yash Shah 2019-11-18 77 static void print_vm_layout(void) { }
2cc6c4a0da4ab1 Yash Shah 2019-11-18 78 #endif /* CONFIG_DEBUG_VM */
2cc6c4a0da4ab1 Yash Shah 2019-11-18 79
:::::: The code at line 68 was first introduced by commit
:::::: 2cc6c4a0da4ab11537b2567952b59af71a90ef12 RISC-V: Add address map dumper
:::::: TO: Yash Shah <yash.shah@xxxxxxxxxx>
:::::: CC: Paul Walmsley <paul.walmsley@xxxxxxxxxx>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx Intel Corporation
Attachment:
.config.gz
Description: application/gzip