tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 931294922e65a23e1aad6398b9ae02df74044679 commit: 06c7c914de26c5a4f1418fd54e4dfd0be4215de6 [3955/7588] RISC-V: enable XIP config: riscv-randconfig-r024-20210328 (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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=06c7c914de26c5a4f1418fd54e4dfd0be4215de6 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 06c7c914de26c5a4f1418fd54e4dfd0be4215de6 # 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@xxxxxxxxx> All errors (new ones prefixed by >>): arch/riscv/mm/init.c: In function 'setup_vm': >> arch/riscv/mm/init.c:485:18: error: 'xip_pmd' undeclared (first use in this function); did you mean 'xdp_md'? 485 | (uintptr_t)xip_pmd, PGDIR_SIZE, PAGE_TABLE); | ^~~~~~~ | xdp_md arch/riscv/mm/init.c:485:18: note: each undeclared identifier is reported only once for each function it appears in >> arch/riscv/mm/init.c:489:3: error: implicit declaration of function 'create_pmd_mapping'; did you mean 'create_pgd_mapping'? [-Werror=implicit-function-declaration] 489 | create_pmd_mapping(xip_pmd, va, | ^~~~~~~~~~~~~~~~~~ | create_pgd_mapping cc1: some warnings being treated as errors vim +485 arch/riscv/mm/init.c 482 483 #ifdef CONFIG_XIP_KERNEL 484 create_pgd_mapping(trampoline_pg_dir, XIP_VIRT_ADDR_START, > 485 (uintptr_t)xip_pmd, PGDIR_SIZE, PAGE_TABLE); 486 for (va = XIP_VIRT_ADDR_START; 487 va < XIP_VIRT_ADDR_START + xiprom_sz; 488 va += PMD_SIZE) { > 489 create_pmd_mapping(xip_pmd, va, 490 xiprom + (va - XIP_VIRT_ADDR_START), 491 PMD_SIZE, PAGE_KERNEL_EXEC); 492 } 493 494 create_pgd_mapping(early_pg_dir, XIP_VIRT_ADDR_START, 495 (uintptr_t)xip_pmd, PGDIR_SIZE, PAGE_TABLE); 496 #endif 497 498 /* 499 * Setup early PGD covering entire kernel which will allows 500 * us to reach paging_init(). We map all memory banks later 501 * in setup_vm_final() below. 502 */ 503 end_va = PAGE_OFFSET + load_sz; 504 for (va = PAGE_OFFSET; va < end_va; va += map_size) 505 create_pgd_mapping(early_pg_dir, va, 506 load_pa + (va - PAGE_OFFSET), 507 map_size, PAGE_KERNEL_EXEC); 508 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip