Hi Alexandre,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on lwn/docs-next]
[also build test ERROR on linus/master v5.12-rc2 next-20210312]
[cannot apply to soc/for-next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url:
https://github.com/0day-ci/linux/commits/Alexandre-Ghiti/Move-kernel-mapp...
base:
git://git.lwn.net/linux-2.6 docs-next
config: riscv-randconfig-r013-20210312 (attached as .config)
compiler: riscv32-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://github.com/0day-ci/linux/commit/9d81fd1724231d8cbb9d769b67dd13108...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Alexandre-Ghiti/Move-kernel-mapping-outside-the-linear-mapping/20210313-173049
git checkout 9d81fd1724231d8cbb9d769b67dd131080d22d2b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/riscv/mm/ptdump.c: In function 'ptdump_init':
> arch/riscv/mm/ptdump.c:376:54: error: 'MODULES_VADDR'
undeclared (first use in this function)
376 |
address_markers[MODULES_MAPPING_NR].start_address = MODULES_VADDR;
| ^~~~~~~~~~~~~
arch/riscv/mm/ptdump.c:376:54: note: each undeclared identifier is reported only once
for each function it appears in
vim +/MODULES_VADDR +376 arch/riscv/mm/ptdump.c
356
357 static int ptdump_init(void)
358 {
359 unsigned int i, j;
360
361 #ifdef CONFIG_KASAN
362 address_markers[KASAN_SHADOW_START_NR].start_address = KASAN_SHADOW_START;
363 address_markers[KASAN_SHADOW_END_NR].start_address = KASAN_SHADOW_END;
364 #endif
365 address_markers[FIXMAP_START_NR].start_address = FIXADDR_START;
366 address_markers[FIXMAP_END_NR].start_address = FIXADDR_TOP;
367 address_markers[PCI_IO_START_NR].start_address = PCI_IO_START;
368 address_markers[PCI_IO_END_NR].start_address = PCI_IO_END;
369 #ifdef CONFIG_SPARSEMEM_VMEMMAP
370 address_markers[VMEMMAP_START_NR].start_address = VMEMMAP_START;
371 address_markers[VMEMMAP_END_NR].start_address = VMEMMAP_END;
372 #endif
373 address_markers[VMALLOC_START_NR].start_address = VMALLOC_START;
374 address_markers[VMALLOC_END_NR].start_address = VMALLOC_END;
375 address_markers[PAGE_OFFSET_NR].start_address = PAGE_OFFSET;
376 address_markers[MODULES_MAPPING_NR].start_address =
MODULES_VADDR;
377 address_markers[KERNEL_MAPPING_NR].start_address =
kernel_virt_addr;
378
379 kernel_ptd_info.base_addr = KERN_VIRT_START;
380
381 for (i = 0; i < ARRAY_SIZE(pg_level); i++)
382 for (j = 0; j < ARRAY_SIZE(pte_bits); j++)
383 pg_level[i].mask |= pte_bits[j].mask;
384
385 debugfs_create_file("kernel_page_tables", 0400, NULL,
&kernel_ptd_info,
386 &ptdump_fops);
387 #ifdef CONFIG_EFI
388 if (efi_enabled(EFI_RUNTIME_SERVICES))
389 debugfs_create_file("efi_page_tables", 0400, NULL, &efi_ptd_info,
390 &ptdump_fops);
391 #endif
392
393 return 0;
394 }
395
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org