tree: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git pks/v0.0 head: eed09ce6622d550ab5b10a86e7dd6c2ff6bd59d9 commit: 32e6645b0f3c84ee6e8d9a5566dffa5003821e37 [18/27] x86, mm: Protect page tables with PKS config: arm64-randconfig-r025-20211103 (attached as .config) compiler: aarch64-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://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git/commit/?id=32e6645b0f3c84ee6e8d9a5566dffa5003821e37 git remote add rppt https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git git fetch --no-tags rppt pks/v0.0 git checkout 32e6645b0f3c84ee6e8d9a5566dffa5003821e37 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arm64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from arch/arm64/include/asm/pgalloc.h:17, from arch/arm64/include/asm/kvm_mmu.h:114, from arch/arm64/kernel/smp.c:44: include/asm-generic/pgalloc.h: In function 'pte_free_kernel': >> include/asm-generic/pgalloc.h:64:9: error: implicit declaration of function 'free_table'; did you mean 'free_task'? [-Werror=implicit-function-declaration] 64 | free_table(virt_to_page(pte)); | ^~~~~~~~~~ | free_task cc1: some warnings being treated as errors vim +64 include/asm-generic/pgalloc.h 5fba4af4456b5d Mike Rapoport 2019-07-11 56 5fba4af4456b5d Mike Rapoport 2019-07-11 57 /** 5fba4af4456b5d Mike Rapoport 2019-07-11 58 * pte_free_kernel - free PTE-level kernel page table page 5fba4af4456b5d Mike Rapoport 2019-07-11 59 * @mm: the mm_struct of the current context 5fba4af4456b5d Mike Rapoport 2019-07-11 60 * @pte: pointer to the memory containing the page table 5fba4af4456b5d Mike Rapoport 2019-07-11 61 */ 5fba4af4456b5d Mike Rapoport 2019-07-11 62 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) 5fba4af4456b5d Mike Rapoport 2019-07-11 63 { 42999ce092b58f Rick Edgecombe 2021-05-04 @64 free_table(virt_to_page(pte)); 5fba4af4456b5d Mike Rapoport 2019-07-11 65 } 5fba4af4456b5d Mike Rapoport 2019-07-11 66 :::::: The code at line 64 was first introduced by commit :::::: 42999ce092b58fa8310c49a262c00700e947ac40 x86, mm: Use cache of page tables :::::: TO: Rick Edgecombe :::::: CC: Mike Rapoport --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org