[oracle-dtrace:v1/5.15 16/35] include/uapi/asm-generic/unistd.h:884:24: error: 'sys_waitfd' undeclared here (not in a function); did you mean 'sys_waitid'?

From: kernel test robot
Date: Mon Nov 08 2021 - 19:05:00 EST


tree: https://github.com/oracle/dtrace-linux-kernel v1/5.15
head: 0fee66d7ce96317146609675767971d0f35c3e74
commit: 0fd5e3924d69c1dc81e7c875fc9889b52c50248e [16/35] waitfd: new syscall implementing waitpid() over fds
config: nios2-defconfig (attached as .config)
compiler: nios2-linux-gcc (GCC) 11.2.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/oracle/dtrace-linux-kernel/commit/0fd5e3924d69c1dc81e7c875fc9889b52c50248e
git remote add oracle-dtrace https://github.com/oracle/dtrace-linux-kernel
git fetch --no-tags oracle-dtrace v1/5.15
git checkout 0fd5e3924d69c1dc81e7c875fc9889b52c50248e
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=nios2 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> include/uapi/asm-generic/unistd.h:884:24: error: 'sys_waitfd' undeclared here (not in a function); did you mean 'sys_waitid'?
884 | __SYSCALL(__NR_waitfd, sys_waitfd)
| ^~~~~~~~~~
arch/nios2/kernel/syscall_table.c:13:37: note: in definition of macro '__SYSCALL'
13 | #define __SYSCALL(nr, call) [nr] = (call),
| ^~~~


vim +884 include/uapi/asm-generic/unistd.h

882
883 #define __NR_waitfd 473
> 884 __SYSCALL(__NR_waitfd, sys_waitfd)
885

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip