arch/riscv/mm/init.c:65:37: error: 'FIXADDR_START' undeclared; did you mean 'XAS_RESTART'?

From: kbuild test robot
Date: Sun Feb 09 2020 - 13:25:14 EST


Hi Paul,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: fdfa3a6778b194974df77b384cc71eb2e503639a
commit: 8eace9fb39605f0e201223fd34306ba3b53969b7 Merge branch 'next/misc2' into for-next
date: 3 months ago
config: riscv-randconfig-a001-20200210 (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 >>):

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:65:37: note: each undeclared identifier is reported only once for each function it appears in
>> 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 'PCI_IOBASE'?
(unsigned long)PCI_IO_END);
^~~~~~~~~~
PCI_IOBASE
>> 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 +65 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 65 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 CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip