Hi, I love your patch! Yet something to improve: [auto build test ERROR on next-20230106] url: https://github.com/intel-lab-lkp/linux/commits/guoren-kernel-org/compiler_types-h-Add-__noinstr_section-for-noinstr/20230107-194127 patch link: https://lore.kernel.org/r/20230107113838.3969149-5-guoren%40kernel.org patch subject: [PATCH -next V13 4/7] riscv: entry: Convert to generic entry config: riscv-buildonly-randconfig-r003-20230107 compiler: riscv64-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://github.com/intel-lab-lkp/linux/commit/82d3616db033b052abe2dc3b1481ef5ce474b7ab git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review guoren-kernel-org/compiler_types-h-Add-__noinstr_section-for-noinstr/20230107-194127 git checkout 82d3616db033b052abe2dc3b1481ef5ce474b7ab # 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=riscv olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv 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 lib/syscall.c:6: arch/riscv/include/asm/syscall.h: In function 'syscall_handler': >> arch/riscv/include/asm/syscall.h:85:24: error: 'NR_syscalls' undeclared (first use in this function); did you mean 'si_syscall'? 85 | if (syscall >= NR_syscalls) { | ^~~~~~~~~~~ | si_syscall arch/riscv/include/asm/syscall.h:85:24: note: each undeclared identifier is reported only once for each function it appears in vim +85 arch/riscv/include/asm/syscall.h 76 77 typedef long (*syscall_t)(ulong, ulong, ulong, ulong, ulong, ulong, ulong); 78 static inline void syscall_handler(struct pt_regs *regs, ulong syscall) 79 { 80 syscall_t fn; 81 82 regs->epc += 4; 83 regs->orig_a0 = regs->a0; 84 > 85 if (syscall >= NR_syscalls) { 86 regs->a0 = -ENOSYS; 87 return; 88 } 89 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests