tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: f477dd6eede3ecedc8963478571d99ec3bf3f762 commit: f082d7f14cf1edb181ac3ffcab9c81d08c6b8592 [12376/12643] mm: remove pud_user() from asm-generic/pgtable-nopmd.h config: arm64-buildonly-randconfig-r003-20220808 (https://download.01.org/0day-ci/archive/20240711/202407111706.tTA6kPdD-lkp@xxxxxxxxx/config) compiler: aarch64-linux-gcc (GCC) 13.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240711/202407111706.tTA6kPdD-lkp@xxxxxxxxx/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202407111706.tTA6kPdD-lkp@xxxxxxxxx/ All errors (new ones prefixed by >>): In file included from include/linux/pgtable.h:6, from arch/arm64/include/asm/io.h:12, from include/linux/io.h:14, from include/linux/irq.h:20, from include/asm-generic/hardirq.h:17, from arch/arm64/include/asm/hardirq.h:17, from include/linux/hardirq.h:11, from include/linux/interrupt.h:11, from include/linux/trace_recursion.h:5, from include/linux/ftrace.h:10, from arch/arm64/kernel/asm-offsets.c:12: arch/arm64/include/asm/pgtable.h: In function 'pud_user_accessible_page': >> arch/arm64/include/asm/pgtable.h:1142:54: error: implicit declaration of function 'pud_user'; did you mean 'put_user'? [-Werror=implicit-function-declaration] 1142 | return pud_valid(pud) && !pud_table(pud) && (pud_user(pud) || pud_user_exec(pud)); | ^~~~~~~~ | put_user cc1: some warnings being treated as errors make[3]: *** [scripts/Makefile.build:117: arch/arm64/kernel/asm-offsets.s] Error 1 make[3]: Target 'prepare' not remade because of errors. make[2]: *** [Makefile:1208: prepare0] Error 2 make[2]: Target 'prepare' not remade because of errors. make[1]: *** [Makefile:240: __sub-make] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:240: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. vim +1142 arch/arm64/include/asm/pgtable.h ed928a3402d8a2 Tong Tiangen 2022-05-17 1139 ed928a3402d8a2 Tong Tiangen 2022-05-17 1140 static inline bool pud_user_accessible_page(pud_t pud) ed928a3402d8a2 Tong Tiangen 2022-05-17 1141 { f0f5863a0fb0fb Ryan Roberts 2024-05-03 @1142 return pud_valid(pud) && !pud_table(pud) && (pud_user(pud) || pud_user_exec(pud)); ed928a3402d8a2 Tong Tiangen 2022-05-17 1143 } ed928a3402d8a2 Tong Tiangen 2022-05-17 1144 #endif ed928a3402d8a2 Tong Tiangen 2022-05-17 1145 :::::: The code at line 1142 was first introduced by commit :::::: f0f5863a0fb0fb48a5881c3f6acca1958899dd76 arm64/mm: Remove PTE_PROT_NONE bit :::::: TO: Ryan Roberts <ryan.roberts@xxxxxxx> :::::: CC: Will Deacon <will@xxxxxxxxxx> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki