[PATCH v2 1/3] riscv: Move kernel mapping outside of linear mapping

kernel test robot lkp at intel.com
Sat Mar 13 11:15:02 GMT 2021


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-mapping-outside-the-linear-mapping/20210313-173049
base:   git://git.lwn.net/linux-2.6 docs-next
config: riscv-nommu_k210_defconfig (attached as .config)
compiler: riscv64-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/78f684d0ab9dfe75ab40951ce9edd835b6658209
        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 78f684d0ab9dfe75ab40951ce9edd835b6658209
        # 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 at intel.com>

All errors (new ones prefixed by >>):

   arch/riscv/kernel/setup.c: In function 'setup_arch':
>> arch/riscv/kernel/setup.c:269:2: error: implicit declaration of function 'protect_kernel_linear_mapping_text_rodata' [-Werror=implicit-function-declaration]
     269 |  protect_kernel_linear_mapping_text_rodata();
         |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/protect_kernel_linear_mapping_text_rodata +269 arch/riscv/kernel/setup.c

   235	
   236	void __init setup_arch(char **cmdline_p)
   237	{
   238		parse_dtb();
   239		init_mm.start_code = (unsigned long) _stext;
   240		init_mm.end_code   = (unsigned long) _etext;
   241		init_mm.end_data   = (unsigned long) _edata;
   242		init_mm.brk        = (unsigned long) _end;
   243	
   244		*cmdline_p = boot_command_line;
   245	
   246		early_ioremap_setup();
   247		jump_label_init();
   248		parse_early_param();
   249	
   250		efi_init();
   251		setup_bootmem();
   252		paging_init();
   253		init_resources();
   254	#if IS_ENABLED(CONFIG_BUILTIN_DTB)
   255		unflatten_and_copy_device_tree();
   256	#else
   257		if (early_init_dt_verify(__va(dtb_early_pa)))
   258			unflatten_device_tree();
   259		else
   260			pr_err("No DTB found in kernel mappings\n");
   261	#endif
   262		misc_mem_init();
   263	
   264		sbi_init();
   265	
   266		if (IS_ENABLED(CONFIG_STRICT_KERNEL_RWX))
   267			protect_kernel_text_data();
   268	
 > 269		protect_kernel_linear_mapping_text_rodata();
   270	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 8404 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-riscv/attachments/20210313/371bfdc4/attachment.gz>


More information about the linux-riscv mailing list