All of lore.kernel.org
 help / color / mirror / Atom feed
* [zen-kernel-zen-kernel:5.12/futex2 14/14] kernel/futex2.c:1218:30: error: '__NR_futex_wait' undeclared; did you mean 'ksys_futex_wait'?
@ 2021-05-04 23:53 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-05-04 23:53 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/zen-kernel/zen-kernel 5.12/futex2
head:   5932045f3f84865548199be0695192a500fbb5cb
commit: 5932045f3f84865548199be0695192a500fbb5cb [14/14] futex2: Add sysfs entry for syscall numbers
config: m68k-randconfig-p002-20210504 (attached as .config)
compiler: m68k-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/5932045f3f84865548199be0695192a500fbb5cb
        git remote add zen-kernel-zen-kernel https://github.com/zen-kernel/zen-kernel
        git fetch --no-tags zen-kernel-zen-kernel 5.12/futex2
        git checkout 5932045f3f84865548199be0695192a500fbb5cb
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=m68k 

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:1218:30: error: '__NR_futex_wait' undeclared (first use in this function); did you mean 'ksys_futex_wait'?
    1218 |  return sprintf(buf, "%u\n", __NR_futex_wait);
         |                              ^~~~~~~~~~~~~~~
         |                              ksys_futex_wait
   kernel/futex2.c:1218: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:1226:30: error: '__NR_futex_wake' undeclared (first use in this function); did you mean 'ksys_futex_wake'?
    1226 |  return sprintf(buf, "%u\n", __NR_futex_wake);
         |                              ^~~~~~~~~~~~~~~
         |                              ksys_futex_wake
   kernel/futex2.c: In function 'waitv_show':
>> kernel/futex2.c:1234:30: error: '__NR_futex_waitv' undeclared (first use in this function); did you mean '__futex_waitv'?
    1234 |  return sprintf(buf, "%u\n", __NR_futex_waitv);
         |                              ^~~~~~~~~~~~~~~~
         |                              __futex_waitv
   kernel/futex2.c:1236:1: error: control reaches end of non-void function [-Werror=return-type]
    1236 | }
         | ^
   kernel/futex2.c: In function 'wake_show':
   kernel/futex2.c:1228:1: error: control reaches end of non-void function [-Werror=return-type]
    1228 | }
         | ^
   kernel/futex2.c: In function 'wait_show':
   kernel/futex2.c:1220:1: error: control reaches end of non-void function [-Werror=return-type]
    1220 | }
         | ^
   cc1: some warnings being treated as errors


vim +1218 kernel/futex2.c

  1214	
  1215	static ssize_t wait_show(struct kobject *kobj, struct kobj_attribute *attr,
  1216				     char *buf)
  1217	{
> 1218		return sprintf(buf, "%u\n", __NR_futex_wait);
  1219	
  1220	}
  1221	static struct kobj_attribute futex2_wait_attr = __ATTR_RO(wait);
  1222	
  1223	static ssize_t wake_show(struct kobject *kobj, struct kobj_attribute *attr,
  1224				     char *buf)
  1225	{
> 1226		return sprintf(buf, "%u\n", __NR_futex_wake);
  1227	
  1228	}
  1229	static struct kobj_attribute futex2_wake_attr = __ATTR_RO(wake);
  1230	
  1231	static ssize_t waitv_show(struct kobject *kobj, struct kobj_attribute *attr,
  1232				     char *buf)
  1233	{
> 1234		return sprintf(buf, "%u\n", __NR_futex_waitv);
  1235	

---
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: 21900 bytes --]

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

only message in thread, other threads:[~2021-05-04 23:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-04 23:53 [zen-kernel-zen-kernel:5.12/futex2 14/14] kernel/futex2.c:1218:30: error: '__NR_futex_wait' undeclared; did you mean 'ksys_futex_wait'? 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.