tree: https://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git syscall-tbl head: 9a44a4401f3517a2475158925110f06179accabe commit: 20a218d0b1bdcf335c72cc948af899dfdbbe5add [1/9] arm64: convert unistd_32.h to syscall.tbl format config: arm64-allyesconfig compiler: aarch64-linux-gcc (GCC) 12.1.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/arnd/asm-generic.git/commit/?id=20a218d0b1bdcf335c72cc948af899dfdbbe5add git remote add arnd-asm-generic https://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git git fetch --no-tags arnd-asm-generic syscall-tbl git checkout 20a218d0b1bdcf335c72cc948af899dfdbbe5add # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from include/vdso/const.h:5, from include/linux/const.h:4, from arch/arm64/include/asm/alternative-macros.h:5, from arch/arm64/include/asm/alternative.h:5, from arch/arm64/include/asm/lse.h:15, from arch/arm64/include/asm/cmpxchg.h:14, from arch/arm64/include/asm/atomic.h:16, from include/linux/atomic.h:7, from include/linux/refcount.h:95, from kernel/seccomp.c:18: >> arch/arm64/include/asm/seccomp.h:27:33: error: '__NR_compat_syscalls' undeclared here (not in a function); did you mean 'in_compat_syscall'? 27 | # define SECCOMP_ARCH_COMPAT_NR __NR_compat_syscalls | ^~~~~~~~~~~~~~~~~~~~ include/uapi/linux/const.h:34:40: note: in definition of macro '__KERNEL_DIV_ROUND_UP' 34 | #define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) | ^ include/linux/types.h:11:28: note: in expansion of macro 'BITS_TO_LONGS' 11 | unsigned long name[BITS_TO_LONGS(bits)] | ^~~~~~~~~~~~~ kernel/seccomp.c:168:9: note: in expansion of macro 'DECLARE_BITMAP' 168 | DECLARE_BITMAP(allow_compat, SECCOMP_ARCH_COMPAT_NR); | ^~~~~~~~~~~~~~ kernel/seccomp.c:168:38: note: in expansion of macro 'SECCOMP_ARCH_COMPAT_NR' 168 | DECLARE_BITMAP(allow_compat, SECCOMP_ARCH_COMPAT_NR); | ^~~~~~~~~~~~~~~~~~~~~~ -- In file included from lib/compat_audit.c:5: >> arch/arm64/include/asm/unistd32.h:5:10: fatal error: generated/asm/unistd32.h: No such file or directory 5 | #include | ^~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. vim +27 arch/arm64/include/asm/seccomp.h a1ae65b219416a AKASHI Takahiro 2014-11-28 21 ffde703470b03b Kees Cook 2020-10-27 22 #define SECCOMP_ARCH_NATIVE AUDIT_ARCH_AARCH64 ffde703470b03b Kees Cook 2020-10-27 23 #define SECCOMP_ARCH_NATIVE_NR NR_syscalls ffde703470b03b Kees Cook 2020-10-27 24 #define SECCOMP_ARCH_NATIVE_NAME "aarch64" ffde703470b03b Kees Cook 2020-10-27 25 #ifdef CONFIG_COMPAT ffde703470b03b Kees Cook 2020-10-27 26 # define SECCOMP_ARCH_COMPAT AUDIT_ARCH_ARM ffde703470b03b Kees Cook 2020-10-27 @27 # define SECCOMP_ARCH_COMPAT_NR __NR_compat_syscalls ffde703470b03b Kees Cook 2020-10-27 28 # define SECCOMP_ARCH_COMPAT_NAME "arm" ffde703470b03b Kees Cook 2020-10-27 29 #endif ffde703470b03b Kees Cook 2020-10-27 30 :::::: The code at line 27 was first introduced by commit :::::: ffde703470b03b1000017ed35c4f90a90caa22cf arm64: Enable seccomp architecture tracking :::::: TO: Kees Cook :::::: CC: Kees Cook -- 0-DAY CI Kernel Test Service https://01.org/lkp