linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 12990/13166] arch/riscv/kernel/crash_core.c:8:27: error: 'VA_BITS' undeclared
@ 2023-07-04 16:34 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-07-04 16:34 UTC (permalink / raw)
  To: Eric DeVolder; +Cc: oe-kbuild-all, Linux Memory Management List, Andrew Morton

Hi Eric,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   1c6f93977947dbba1fc4d250c4eb8a7d4cfdecf1
commit: 8d14224263d97d0d53061cf08c2fa911418b1b7f [12990/13166] riscv/kexec: refactor for kernel/Kconfig.kexec
config: riscv-randconfig-r014-20230704 (https://download.01.org/0day-ci/archive/20230705/202307050034.tAJSN9qy-lkp@intel.com/config)
compiler: riscv64-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230705/202307050034.tAJSN9qy-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202307050034.tAJSN9qy-lkp@intel.com/

Note: the linux-next/master HEAD 1c6f93977947dbba1fc4d250c4eb8a7d4cfdecf1 builds fine.
      It may have been fixed somewhere.

All errors (new ones prefixed by >>):

   In file included from arch/riscv/kernel/crash_core.c:3:
   arch/riscv/kernel/crash_core.c: In function 'arch_crash_save_vmcoreinfo':
>> arch/riscv/kernel/crash_core.c:8:27: error: 'VA_BITS' undeclared (first use in this function)
       8 |         VMCOREINFO_NUMBER(VA_BITS);
         |                           ^~~~~~~
   include/linux/crash_core.h:68:64: note: in definition of macro 'VMCOREINFO_NUMBER'
      68 |         vmcoreinfo_append_str("NUMBER(%s)=%ld\n", #name, (long)name)
         |                                                                ^~~~
   arch/riscv/kernel/crash_core.c:8:27: note: each undeclared identifier is reported only once for each function it appears in
       8 |         VMCOREINFO_NUMBER(VA_BITS);
         |                           ^~~~~~~
   include/linux/crash_core.h:68:64: note: in definition of macro 'VMCOREINFO_NUMBER'
      68 |         vmcoreinfo_append_str("NUMBER(%s)=%ld\n", #name, (long)name)
         |                                                                ^~~~
   arch/riscv/kernel/crash_core.c:12:58: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'int' [-Wformat=]
      12 |         vmcoreinfo_append_str("NUMBER(VMALLOC_START)=0x%lx\n", VMALLOC_START);
         |                                                        ~~^
         |                                                          |
         |                                                          long unsigned int
         |                                                        %x
>> arch/riscv/kernel/crash_core.c:14:64: error: 'VMEMMAP_START' undeclared (first use in this function)
      14 |         vmcoreinfo_append_str("NUMBER(VMEMMAP_START)=0x%lx\n", VMEMMAP_START);
         |                                                                ^~~~~~~~~~~~~
>> arch/riscv/kernel/crash_core.c:15:62: error: 'VMEMMAP_END' undeclared (first use in this function); did you mean 'MEMREMAP_ENC'?
      15 |         vmcoreinfo_append_str("NUMBER(VMEMMAP_END)=0x%lx\n", VMEMMAP_END);
         |                                                              ^~~~~~~~~~~
         |                                                              MEMREMAP_ENC
>> arch/riscv/kernel/crash_core.c:17:64: error: 'MODULES_VADDR' undeclared (first use in this function)
      17 |         vmcoreinfo_append_str("NUMBER(MODULES_VADDR)=0x%lx\n", MODULES_VADDR);
         |                                                                ^~~~~~~~~~~~~
>> arch/riscv/kernel/crash_core.c:18:62: error: 'MODULES_END' undeclared (first use in this function)
      18 |         vmcoreinfo_append_str("NUMBER(MODULES_END)=0x%lx\n", MODULES_END);
         |                                                              ^~~~~~~~~~~


vim +/VA_BITS +8 arch/riscv/kernel/crash_core.c

649d6b1019a2f2 Xianting Tian 2022-10-26   5  
649d6b1019a2f2 Xianting Tian 2022-10-26   6  void arch_crash_save_vmcoreinfo(void)
649d6b1019a2f2 Xianting Tian 2022-10-26   7  {
649d6b1019a2f2 Xianting Tian 2022-10-26  @8  	VMCOREINFO_NUMBER(VA_BITS);
649d6b1019a2f2 Xianting Tian 2022-10-26   9  	VMCOREINFO_NUMBER(phys_ram_base);
649d6b1019a2f2 Xianting Tian 2022-10-26  10  
649d6b1019a2f2 Xianting Tian 2022-10-26  11  	vmcoreinfo_append_str("NUMBER(PAGE_OFFSET)=0x%lx\n", PAGE_OFFSET);
649d6b1019a2f2 Xianting Tian 2022-10-26  12  	vmcoreinfo_append_str("NUMBER(VMALLOC_START)=0x%lx\n", VMALLOC_START);
649d6b1019a2f2 Xianting Tian 2022-10-26  13  	vmcoreinfo_append_str("NUMBER(VMALLOC_END)=0x%lx\n", VMALLOC_END);
649d6b1019a2f2 Xianting Tian 2022-10-26 @14  	vmcoreinfo_append_str("NUMBER(VMEMMAP_START)=0x%lx\n", VMEMMAP_START);
649d6b1019a2f2 Xianting Tian 2022-10-26 @15  	vmcoreinfo_append_str("NUMBER(VMEMMAP_END)=0x%lx\n", VMEMMAP_END);
649d6b1019a2f2 Xianting Tian 2022-10-26  16  #ifdef CONFIG_64BIT
649d6b1019a2f2 Xianting Tian 2022-10-26 @17  	vmcoreinfo_append_str("NUMBER(MODULES_VADDR)=0x%lx\n", MODULES_VADDR);
649d6b1019a2f2 Xianting Tian 2022-10-26 @18  	vmcoreinfo_append_str("NUMBER(MODULES_END)=0x%lx\n", MODULES_END);

:::::: The code at line 8 was first introduced by commit
:::::: 649d6b1019a2f243bc3a98cb85902a8ebf74289a RISC-V: Add arch_crash_save_vmcoreinfo support

:::::: TO: Xianting Tian <xianting.tian@linux.alibaba.com>
:::::: CC: Palmer Dabbelt <palmer@rivosinc.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-07-04 16:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-04 16:34 [linux-next:master 12990/13166] arch/riscv/kernel/crash_core.c:8:27: error: 'VA_BITS' undeclared kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox