[openeuler:OLK-6.6 2938/2938] arch/arm64/kernel/xcall/xcall.c:22:8: error: use of undeclared identifier '__NR_syscalls'

tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: a069154a5b505dae14e18b3d12771757eef2e07f commit: 7de9fb723946e2c735199cd92df3d7d953b43759 [2938/2938] arm64: Add hardware xcall framework support config: arm64-randconfig-004-20250926 (https://download.01.org/0day-ci/archive/20250926/202509262003.tHuFHwb4-lkp@i...) compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project cafc064fc7a96b3979a023ddae1da2b499d6c954) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250926/202509262003.tHuFHwb4-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/202509262003.tHuFHwb4-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from arch/arm64/kernel/xcall/xcall.c:12: arch/arm64/include/asm/xcall.h:18:31: error: use of undeclared identifier '__NR_syscalls' 18 | DECLARE_BITMAP(xcall_enable, __NR_syscalls); | ^~~~~~~~~~~~~
arch/arm64/kernel/xcall/xcall.c:22:8: error: use of undeclared identifier '__NR_syscalls' 22 | __NR_syscalls); | ^~~~~~~~~~~~~ 2 errors generated.
vim +/__NR_syscalls +22 arch/arm64/kernel/xcall/xcall.c 13 14 static inline int sw_xcall_init_task(struct task_struct *p, struct task_struct *orig) 15 { 16 p->xinfo = kzalloc(sizeof(struct xcall_info), GFP_KERNEL); 17 if (!p->xinfo) 18 return -ENOMEM; 19 20 if (orig->xinfo) { 21 bitmap_copy(TASK_XINFO(p)->xcall_enable, TASK_XINFO(orig)->xcall_enable,
22 __NR_syscalls); 23 } 24 25 return 0; 26 } 27
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot