[openeuler:OLK-6.6 2630/2630] arch/arm64/include/asm/xcall.h:13:31: error: '__NR_syscalls' undeclared here (not in a function); did you mean 'rseq_syscall'?

tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: e5f0407c7ee0aba1c7b2ab0f516e9dfb707a0ee2 commit: b5fb30ccdb3d8ed46e1e740d9aaebcb96f8db97a [2630/2630] arm64: Reserve a kabi in task_struct exclusively for xcall config: arm64-randconfig-r113-20250803 (https://download.01.org/0day-ci/archive/20250803/202508031142.M80c8vhN-lkp@i...) compiler: aarch64-linux-gcc (GCC) 7.5.0 reproduce: (https://download.01.org/0day-ci/archive/20250803/202508031142.M80c8vhN-lkp@i...) 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@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202508031142.M80c8vhN-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from include/vdso/const.h:5:0, from include/linux/const.h:4, from include/linux/align.h:5, from include/linux/bitmap.h:7, from arch/arm64/kernel/xcall.c:8:
arch/arm64/include/asm/xcall.h:13:31: error: '__NR_syscalls' undeclared here (not in a function); did you mean 'rseq_syscall'? DECLARE_BITMAP(xcall_enable, __NR_syscalls); ^ include/uapi/linux/const.h:34:40: note: in definition of macro '__KERNEL_DIV_ROUND_UP' #define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) ^ include/linux/types.h:11:21: note: in expansion of macro 'BITS_TO_LONGS' unsigned long name[BITS_TO_LONGS(bits)] ^~~~~~~~~~~~~ arch/arm64/include/asm/xcall.h:13:2: note: in expansion of macro 'DECLARE_BITMAP' DECLARE_BITMAP(xcall_enable, __NR_syscalls); ^~~~~~~~~~~~~~
vim +13 arch/arm64/include/asm/xcall.h 10 11 struct xcall_info { 12 /* Must be first! */
13 DECLARE_BITMAP(xcall_enable, __NR_syscalls); 14 }; 15
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot