tree:
https://github.com/zen-kernel/zen-kernel 5.13/futex2
head: db649ce1f5de12432be5bfedd8388eacc2f85efc
commit: f12c1f14276bce0f66e514b419e68506fb5bad55 [1/19] futex2: Implement wait and wake
functions
config: powerpc64-randconfig-r011-20210718 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
5d5b08761f944d5b9822d582378333cc4b36a0a7)
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
# install powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
#
https://github.com/zen-kernel/zen-kernel/commit/f12c1f14276bce0f66e514b41...
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 f12c1f14276bce0f66e514b419e68506fb5bad55
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir
ARCH=powerpc 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 >>):
In file included from kernel/futex2.c:16:
In file included from include/linux/freezer.h:7:
In file included from include/linux/debug_locks.h:5:
In file included from include/linux/atomic.h:7:
In file included from arch/powerpc/include/asm/atomic.h:11:
In file included from arch/powerpc/include/asm/cmpxchg.h:8:
In file included from include/linux/bug.h:5:
In file included from arch/powerpc/include/asm/bug.h:109:
In file included from include/asm-generic/bug.h:20:
In file included from include/linux/kernel.h:12:
In file included from include/linux/bitops.h:32:
In file included from arch/powerpc/include/asm/bitops.h:62:
arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined
[-Wmacro-redefined]
#define __lwsync() __asm__ __volatile__ (stringify_in_c(LWSYNC) : :
:"memory")
^
<built-in>:309:9: note: previous definition is here
#define __lwsync __builtin_ppc_lwsync
^
kernel/futex2.c:470:43: error: expected identifier
COMPAT_SYSCALL_DEFINE4(compat_futex_wait, void __user *, uaddr, compat_u64, val,
^
> kernel/futex2.c:474:25: error: use of undeclared identifier
'uaddr'
return ksys_futex_wait(uaddr, val, flags, timo);
^
> kernel/futex2.c:474:32: error: use of undeclared identifier
'val'
return ksys_futex_wait(uaddr, val, flags, timo);
^
kernel/futex2.c:474:37: error: use of undeclared identifier 'flags'
return ksys_futex_wait(uaddr, val, flags, timo);
^
kernel/futex2.c:474:44: error: use of undeclared identifier 'timo'
return ksys_futex_wait(uaddr, val, flags, timo);
^
kernel/futex2.c:470:1: warning: no previous prototype for function
'COMPAT_SYSCALL_DEFINE4' [-Wmissing-prototypes]
COMPAT_SYSCALL_DEFINE4(compat_futex_wait, void __user *, uaddr, compat_u64, val,
^
kernel/futex2.c:470:1: note: declare 'static' if the function is not intended
to be used outside of this translation unit
COMPAT_SYSCALL_DEFINE4(compat_futex_wait, void __user *, uaddr, compat_u64, val,
^
static
kernel/futex2.c:470:23: error: this old-style function definition is not preceded by a
prototype [-Werror,-Wstrict-prototypes]
COMPAT_SYSCALL_DEFINE4(compat_futex_wait, void __user *, uaddr, compat_u64, val,
^
2 warnings and 6 errors generated.
vim +/uaddr +474 kernel/futex2.c
468
469 #ifdef CONFIG_COMPAT
470 COMPAT_SYSCALL_DEFINE4(compat_futex_wait, void __user *, uaddr, compat_u64, val,
471 unsigned int, flags,
472 struct __kernel_timespec __user *, timo)
473 {
474 return ksys_futex_wait(uaddr, val, flags, timo);
475 }
476 #endif
477
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org