lkml.org 
[lkml]   [2020]   [Feb]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectarch/riscv//mm/init.c:65:37: error: 'FIXADDR_START' undeclared; did you mean 'XAS_RESTART'?
Hi Paul,

FYI, the error/warning still remains.

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

All errors (new ones prefixed by >>):

#define page_to_pfn __page_to_pfn
^~~~~~~~~~~~~
arch/riscv/include/asm/page.h:113:41: note: in expansion of macro 'page_to_pfn'
#define page_to_virt(page) (pfn_to_virt(page_to_pfn(page)))
^~~~~~~~~~~
include/linux/mm.h:1321:9: note: in expansion of macro 'page_to_virt'
return page_to_virt(page);
^~~~~~~~~~~~
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/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 '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

2cc6c4a0da4ab11 Yash Shah 2019-11-18 61
2cc6c4a0da4ab11 Yash Shah 2019-11-18 62 static void print_vm_layout(void)
2cc6c4a0da4ab11 Yash Shah 2019-11-18 63 {
2cc6c4a0da4ab11 Yash Shah 2019-11-18 64 pr_notice("Virtual kernel memory layout:\n");
2cc6c4a0da4ab11 Yash Shah 2019-11-18 @65 print_mlk("fixmap", (unsigned long)FIXADDR_START,
2cc6c4a0da4ab11 Yash Shah 2019-11-18 @66 (unsigned long)FIXADDR_TOP);
2cc6c4a0da4ab11 Yash Shah 2019-11-18 @67 print_mlm("pci io", (unsigned long)PCI_IO_START,
2cc6c4a0da4ab11 Yash Shah 2019-11-18 @68 (unsigned long)PCI_IO_END);
2cc6c4a0da4ab11 Yash Shah 2019-11-18 @69 print_mlm("vmemmap", (unsigned long)VMEMMAP_START,
2cc6c4a0da4ab11 Yash Shah 2019-11-18 @70 (unsigned long)VMEMMAP_END);
2cc6c4a0da4ab11 Yash Shah 2019-11-18 71 print_mlm("vmalloc", (unsigned long)VMALLOC_START,
2cc6c4a0da4ab11 Yash Shah 2019-11-18 @72 (unsigned long)VMALLOC_END);
2cc6c4a0da4ab11 Yash Shah 2019-11-18 73 print_mlm("lowmem", (unsigned long)PAGE_OFFSET,
2cc6c4a0da4ab11 Yash Shah 2019-11-18 74 (unsigned long)high_memory);
2cc6c4a0da4ab11 Yash Shah 2019-11-18 75 }
2cc6c4a0da4ab11 Yash Shah 2019-11-18 76 #else
2cc6c4a0da4ab11 Yash Shah 2019-11-18 77 static void print_vm_layout(void) { }
2cc6c4a0da4ab11 Yash Shah 2019-11-18 78 #endif /* CONFIG_DEBUG_VM */
2cc6c4a0da4ab11 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@sifive.com>
:::::: CC: Paul Walmsley <paul.walmsley@sifive.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2020-02-07 06:40    [W:3.723 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site