tree:
https://github.com/zen-kernel/zen-kernel 5.13/futex2
head: db649ce1f5de12432be5bfedd8388eacc2f85efc
commit: ef20e009a86beacc6e27a543e1ed358a01b98af7 [16/19] futex2: Add sysfs entry for
syscall numbers
config: m68k-randconfig-c003-20210718 (attached as .config)
compiler: m68k-linux-gcc (GCC) 10.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/ef20e009a86beacc6e27a543e...
git remote add zen-kernel-zen-kernel
https://github.com/zen-kernel/zen-kernel
git fetch --no-tags zen-kernel-zen-kernel 5.13/futex2
git checkout ef20e009a86beacc6e27a543e1ed358a01b98af7
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir
ARCH=m68k SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
kernel/futex2.c: In function 'futex_get_shared_key':
kernel/futex2.c:313:31: error: implicit declaration of function
'basepage_index'; did you mean 'page_index'?
[-Werror=implicit-function-declaration]
313 | key->index = (unsigned long)basepage_index(tail);
| ^~~~~~~~~~~~~~
| page_index
kernel/futex2.c: In function 'wait_show':
> kernel/futex2.c:1264:30: error: '__NR_futex_wait'
undeclared (first use in this function); did you mean 'ksys_futex_wait'?
1264 | return sprintf(buf, "%u\n", __NR_futex_wait);
| ^~~~~~~~~~~~~~~
| ksys_futex_wait
kernel/futex2.c:1264: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:1272:30: error: '__NR_futex_wake'
undeclared (first use in this function); did you mean 'ksys_futex_wake'?
1272 | return sprintf(buf, "%u\n", __NR_futex_wake);
| ^~~~~~~~~~~~~~~
| ksys_futex_wake
kernel/futex2.c: In function 'waitv_show':
> kernel/futex2.c:1280:30: error: '__NR_futex_waitv'
undeclared (first use in this function); did you mean '__futex_waitv'?
1280 | return sprintf(buf, "%u\n", __NR_futex_waitv);
| ^~~~~~~~~~~~~~~~
| __futex_waitv
kernel/futex2.c:1282:1: error: control reaches end of non-void function
[-Werror=return-type]
1282 | }
| ^
kernel/futex2.c: In function 'wake_show':
kernel/futex2.c:1274:1: error: control reaches end of non-void function
[-Werror=return-type]
1274 | }
| ^
kernel/futex2.c: In function 'wait_show':
kernel/futex2.c:1266:1: error: control reaches end of non-void function
[-Werror=return-type]
1266 | }
| ^
cc1: some warnings being treated as errors
vim +1264 kernel/futex2.c
1260
1261 static ssize_t wait_show(struct kobject *kobj, struct kobj_attribute *attr,
1262 char *buf)
1263 {
1264 return sprintf(buf, "%u\n", __NR_futex_wait);
1265
1266 }
1267 static struct kobj_attribute futex2_wait_attr = __ATTR_RO(wait);
1268
1269 static ssize_t wake_show(struct kobject *kobj, struct kobj_attribute *attr,
1270 char *buf)
1271 {
1272 return sprintf(buf, "%u\n", __NR_futex_wake);
1273
1274 }
1275 static struct kobj_attribute futex2_wake_attr = __ATTR_RO(wake);
1276
1277 static ssize_t waitv_show(struct kobject *kobj, struct kobj_attribute *attr,
1278 char *buf)
1279 {
1280 return sprintf(buf, "%u\n", __NR_futex_waitv);
1281
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org