All of lore.kernel.org
 help / color / mirror / Atom feed
* [zen-kernel-zen-kernel:5.10/futex2 13/13] kernel/futex2.c:1226:30: error: '__NR_futex_wait' undeclared; did you mean
@ 2021-02-18 19:11 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-18 19:11 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3665 bytes --]

tree:   https://github.com/zen-kernel/zen-kernel 5.10/futex2
head:   65d8ec592b14a8c75ce2a04bfef5a188cd279d00
commit: 65d8ec592b14a8c75ce2a04bfef5a188cd279d00 [13/13] futex2: Add sysfs entry for syscall numbers
config: alpha-randconfig-r014-20210218 (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.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/zen-kernel/zen-kernel/commit/65d8ec592b14a8c75ce2a04bfef5a188cd279d00
        git remote add zen-kernel-zen-kernel https://github.com/zen-kernel/zen-kernel
        git fetch --no-tags zen-kernel-zen-kernel 5.10/futex2
        git checkout 65d8ec592b14a8c75ce2a04bfef5a188cd279d00
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha 

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

All errors (new ones prefixed by >>):

   kernel/futex2.c: In function 'wait_show':
>> kernel/futex2.c:1226:30: error: '__NR_futex_wait' undeclared (first use in this function); did you mean '__futex_wait'?
    1226 |  return sprintf(buf, "%u\n", __NR_futex_wait);
         |                              ^~~~~~~~~~~~~~~
         |                              __futex_wait
   kernel/futex2.c:1226:30: note: each undeclared identifier is reported only once for each function it appears in
   kernel/futex2.c: In function 'wake_show':
>> kernel/futex2.c:1234:30: error: '__NR_futex_wake' undeclared (first use in this function); did you mean 'sys_futex_wake'?
    1234 |  return sprintf(buf, "%u\n", __NR_futex_wake);
         |                              ^~~~~~~~~~~~~~~
         |                              sys_futex_wake
   kernel/futex2.c: In function 'waitv_show':
>> kernel/futex2.c:1242:30: error: '__NR_futex_waitv' undeclared (first use in this function); did you mean '__futex_wait'?
    1242 |  return sprintf(buf, "%u\n", __NR_futex_waitv);
         |                              ^~~~~~~~~~~~~~~~
         |                              __futex_wait
   kernel/futex2.c:1244:1: error: control reaches end of non-void function [-Werror=return-type]
    1244 | }
         | ^
   kernel/futex2.c: In function 'wake_show':
   kernel/futex2.c:1236:1: error: control reaches end of non-void function [-Werror=return-type]
    1236 | }
         | ^
   kernel/futex2.c: In function 'wait_show':
   kernel/futex2.c:1228:1: error: control reaches end of non-void function [-Werror=return-type]
    1228 | }
         | ^
   cc1: some warnings being treated as errors


vim +1226 kernel/futex2.c

  1222	
  1223	static ssize_t wait_show(struct kobject *kobj, struct kobj_attribute *attr,
  1224				     char *buf)
  1225	{
> 1226		return sprintf(buf, "%u\n", __NR_futex_wait);
  1227	
  1228	}
  1229	static struct kobj_attribute futex2_wait_attr = __ATTR_RO(wait);
  1230	
  1231	static ssize_t wake_show(struct kobject *kobj, struct kobj_attribute *attr,
  1232				     char *buf)
  1233	{
> 1234		return sprintf(buf, "%u\n", __NR_futex_wake);
  1235	
  1236	}
  1237	static struct kobj_attribute futex2_wake_attr = __ATTR_RO(wake);
  1238	
  1239	static ssize_t waitv_show(struct kobject *kobj, struct kobj_attribute *attr,
  1240				     char *buf)
  1241	{
> 1242		return sprintf(buf, "%u\n", __NR_futex_waitv);
  1243	

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 34827 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-18 19:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-18 19:11 [zen-kernel-zen-kernel:5.10/futex2 13/13] kernel/futex2.c:1226:30: error: '__NR_futex_wait' undeclared; did you mean kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.