All of lore.kernel.org
 help / color / mirror / Atom feed
* arch/riscv//mm/init.c:65:37: error: 'FIXADDR_START' undeclared; did you mean 'XAS_RESTART'?
@ 2020-01-10 11:53 ` kbuild test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kbuild test robot @ 2020-01-10 11:53 UTC (permalink / raw)
  To: Paul Walmsley; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 4576 bytes --]

Hi Paul,

FYI, the error/warning still remains.

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

   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@sifive.com>
:::::: CC: Paul Walmsley <paul.walmsley@sifive.com>

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 30792 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* arch/riscv//mm/init.c:65:37: error: 'FIXADDR_START' undeclared; did you mean 'XAS_RESTART'?
@ 2020-01-10 11:53 ` kbuild test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kbuild test robot @ 2020-01-10 11:53 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 4662 bytes --]

Hi Paul,

FYI, the error/warning still remains.

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

   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@sifive.com>
:::::: CC: Paul Walmsley <paul.walmsley@sifive.com>

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 30792 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* arch/riscv//mm/init.c:65:37: error: 'FIXADDR_START' undeclared; did you mean 'XAS_RESTART'?
@ 2020-02-07  5:38 ` kbuild test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kbuild test robot @ 2020-02-07  5:38 UTC (permalink / raw)
  To: Paul Walmsley; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 10240 bytes --]

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 25920 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* arch/riscv//mm/init.c:65:37: error: 'FIXADDR_START' undeclared; did you mean 'XAS_RESTART'?
@ 2020-02-07  5:38 ` kbuild test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kbuild test robot @ 2020-02-07  5:38 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 10424 bytes --]

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(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 25920 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-02-07  5:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-10 11:53 arch/riscv//mm/init.c:65:37: error: 'FIXADDR_START' undeclared; did you mean 'XAS_RESTART'? kbuild test robot
2020-01-10 11:53 ` kbuild test robot
2020-02-07  5:38 kbuild test robot
2020-02-07  5:38 ` kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.