Messages in this thread | | | Date | Wed, 29 Dec 2021 16:08:06 +0800 | From | kernel test robot <> | Subject | [csky-linux:riscv_compat_v2_sv48_v3_xtpbmt 18/32] arch/riscv/include/asm/page.h:40:35: error: 'PTRS_PER_PGD' undeclared; did you mean 'PTRS_PER_PMD'? |
| |
tree: https://github.com/c-sky/csky-linux riscv_compat_v2_sv48_v3_xtpbmt head: 29a08e898f4e552bc0d5117b437ac3073e6ebb81 commit: 0ede6d3975bb0435d097cdfb2b45ee74e778ab4b [18/32] riscv: Move KASAN mapping next to the kernel mapping config: riscv-allmodconfig (https://download.01.org/0day-ci/archive/20211229/202112291625.LuMtmcux-lkp@intel.com/config) compiler: riscv64-linux-gcc (GCC) 11.2.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/c-sky/csky-linux/commit/0ede6d3975bb0435d097cdfb2b45ee74e778ab4b git remote add csky-linux https://github.com/c-sky/csky-linux git fetch --no-tags csky-linux riscv_compat_v2_sv48_v3_xtpbmt git checkout 0ede6d3975bb0435d097cdfb2b45ee74e778ab4b # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=riscv prepare
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
error: include/uapi/asm-generic/fcntl.h: leak CONFIG_COMPAT to user-space make[2]: *** [scripts/Makefile.headersinst:63: usr/include/asm-generic/fcntl.h] Error 1 make[2]: Target '__headers' not remade because of errors. make[1]: *** [Makefile:1283: headers] Error 2 In file included from arch/riscv/include/asm/thread_info.h:11, from include/linux/thread_info.h:60, 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:55, from include/linux/mmzone.h:8, from include/linux/gfp.h:6, from include/linux/mm.h:10, from arch/riscv/kernel/asm-offsets.c:10: arch/riscv/include/asm/pgtable-64.h: In function 'pud_page': >> arch/riscv/include/asm/page.h:40:35: error: 'PTRS_PER_PGD' undeclared (first use in this function); did you mean 'PTRS_PER_PMD'? 40 | #define KERN_VIRT_SIZE ((PTRS_PER_PGD / 2 * PGDIR_SIZE) / 2) | ^~~~~~~~~~~~ arch/riscv/include/asm/pgtable.h:27:27: note: in expansion of macro 'KERN_VIRT_SIZE' 27 | #define VMALLOC_SIZE (KERN_VIRT_SIZE >> 1) | ^~~~~~~~~~~~~~ arch/riscv/include/asm/pgtable.h:29:41: note: in expansion of macro 'VMALLOC_SIZE' 29 | #define VMALLOC_START (PAGE_OFFSET - VMALLOC_SIZE) | ^~~~~~~~~~~~ arch/riscv/include/asm/pgtable.h:57:26: note: in expansion of macro 'VMALLOC_START' 57 | #define VMEMMAP_START (VMALLOC_START - VMEMMAP_SIZE) | ^~~~~~~~~~~~~ arch/riscv/include/asm/pgtable.h:63:41: note: in expansion of macro 'VMEMMAP_START' 63 | #define vmemmap ((struct page *)VMEMMAP_START) | ^~~~~~~~~~~~~ include/asm-generic/memory_model.h:25:34: note: in expansion of macro 'vmemmap' 25 | #define __pfn_to_page(pfn) (vmemmap + (pfn)) | ^~~~~~~ include/asm-generic/memory_model.h:53:21: note: in expansion of macro '__pfn_to_page' 53 | #define pfn_to_page __pfn_to_page | ^~~~~~~~~~~~~ arch/riscv/include/asm/pgtable-64.h:69:16: note: in expansion of macro 'pfn_to_page' 69 | return pfn_to_page(pud_val(pud) >> _PAGE_PFN_SHIFT); | ^~~~~~~~~~~ arch/riscv/include/asm/page.h:40:35: note: each undeclared identifier is reported only once for each function it appears in 40 | #define KERN_VIRT_SIZE ((PTRS_PER_PGD / 2 * PGDIR_SIZE) / 2) | ^~~~~~~~~~~~ arch/riscv/include/asm/pgtable.h:27:27: note: in expansion of macro 'KERN_VIRT_SIZE' 27 | #define VMALLOC_SIZE (KERN_VIRT_SIZE >> 1) | ^~~~~~~~~~~~~~ arch/riscv/include/asm/pgtable.h:29:41: note: in expansion of macro 'VMALLOC_SIZE' 29 | #define VMALLOC_START (PAGE_OFFSET - VMALLOC_SIZE) | ^~~~~~~~~~~~ arch/riscv/include/asm/pgtable.h:57:26: note: in expansion of macro 'VMALLOC_START' 57 | #define VMEMMAP_START (VMALLOC_START - VMEMMAP_SIZE) | ^~~~~~~~~~~~~ arch/riscv/include/asm/pgtable.h:63:41: note: in expansion of macro 'VMEMMAP_START' 63 | #define vmemmap ((struct page *)VMEMMAP_START) | ^~~~~~~~~~~~~ include/asm-generic/memory_model.h:25:34: note: in expansion of macro 'vmemmap' 25 | #define __pfn_to_page(pfn) (vmemmap + (pfn)) | ^~~~~~~ include/asm-generic/memory_model.h:53:21: note: in expansion of macro '__pfn_to_page' 53 | #define pfn_to_page __pfn_to_page | ^~~~~~~~~~~~~ arch/riscv/include/asm/pgtable-64.h:69:16: note: in expansion of macro 'pfn_to_page' 69 | return pfn_to_page(pud_val(pud) >> _PAGE_PFN_SHIFT); | ^~~~~~~~~~~ make[2]: *** [scripts/Makefile.build:121: arch/riscv/kernel/asm-offsets.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1197: prepare0] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:219: __sub-make] Error 2 make: Target 'prepare' not remade because of errors.
vim +40 arch/riscv/include/asm/page.h
35 36 /* 37 * Half of the kernel address space (half of the entries of the page global 38 * directory) is for the direct mapping. 39 */ > 40 #define KERN_VIRT_SIZE ((PTRS_PER_PGD / 2 * PGDIR_SIZE) / 2) 41
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
| |