Re: [RFC PATCH 04/13] futex2: Implement requeue operation
by kernel test robot
Hi "André,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on tip/locking/core]
[also build test ERROR on tip/x86/asm arm64/for-next/core tip/perf/core linus/master v5.11]
[cannot apply to next-20210212]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Andr-Almeida/Add-futex2-syscalls...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 3765d01bab73bdb920ef711203978f02cd26e4da
config: arm64-randconfig-r005-20210215 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/0day-ci/linux/commit/455187a88266576bf8dee8f386d9b1637...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Andr-Almeida/Add-futex2-syscalls/20210215-233004
git checkout 455187a88266576bf8dee8f386d9b16378e6cd93
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
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 arch/arm64/kernel/asm-offsets.c:14:
In file included from include/linux/kvm_host.h:36:
In file included from arch/arm64/include/asm/kvm_host.h:21:
In file included from arch/arm64/include/asm/arch_gicv3.h:17:
In file included from arch/arm64/include/asm/cacheflush.h:11:
In file included from include/linux/kgdb.h:19:
In file included from include/linux/kprobes.h:29:
In file included from include/linux/ftrace.h:22:
In file included from arch/arm64/include/asm/ftrace.h:42:
In file included from include/linux/compat.h:20:
In file included from include/uapi/linux/unistd.h:8:
In file included from arch/arm64/include/asm/unistd.h:47:
In file included from arch/arm64/include/uapi/asm/unistd.h:24:
>> include/uapi/asm-generic/unistd.h:875:50: error: too many arguments provided to function-like macro invocation
__SYSCALL(__NR_futex_requeue, sys_futex_requeue, compat_sys_futex_requeue)
^
include/uapi/asm-generic/unistd.h:16:9: note: macro '__SYSCALL' defined here
#define __SYSCALL(x, y)
^
include/uapi/asm-generic/unistd.h:875:1: error: unknown type name '__SYSCALL'
__SYSCALL(__NR_futex_requeue, sys_futex_requeue, compat_sys_futex_requeue)
^
In file included from arch/arm64/kernel/asm-offsets.c:14:
In file included from include/linux/kvm_host.h:36:
In file included from arch/arm64/include/asm/kvm_host.h:21:
In file included from arch/arm64/include/asm/arch_gicv3.h:17:
In file included from arch/arm64/include/asm/cacheflush.h:11:
In file included from include/linux/kgdb.h:19:
In file included from include/linux/kprobes.h:29:
In file included from include/linux/ftrace.h:22:
In file included from arch/arm64/include/asm/ftrace.h:42:
In file included from include/linux/compat.h:22:
In file included from arch/arm64/include/asm/compat.h:8:
>> include/asm-generic/compat.h:6:12: error: expected ';' after top level declarator
typedef u32 compat_size_t;
^
;
In file included from arch/arm64/kernel/asm-offsets.c:14:
In file included from include/linux/kvm_host.h:36:
In file included from arch/arm64/include/asm/kvm_host.h:21:
In file included from arch/arm64/include/asm/arch_gicv3.h:17:
In file included from arch/arm64/include/asm/cacheflush.h:11:
In file included from include/linux/kgdb.h:19:
In file included from include/linux/kprobes.h:29:
In file included from include/linux/ftrace.h:22:
In file included from arch/arm64/include/asm/ftrace.h:42:
>> include/linux/compat.h:96:2: error: unknown type name 'compat_size_t'; did you mean 'compat_ssize_t'?
compat_size_t iov_len;
^~~~~~~~~~~~~
compat_ssize_t
include/asm-generic/compat.h:7:13: note: 'compat_ssize_t' declared here
typedef s32 compat_ssize_t;
^
4 errors generated.
--
In file included from arch/arm64/kernel/asm-offsets.c:14:
In file included from include/linux/kvm_host.h:36:
In file included from arch/arm64/include/asm/kvm_host.h:21:
In file included from arch/arm64/include/asm/arch_gicv3.h:17:
In file included from arch/arm64/include/asm/cacheflush.h:11:
In file included from include/linux/kgdb.h:19:
In file included from include/linux/kprobes.h:29:
In file included from include/linux/ftrace.h:22:
In file included from arch/arm64/include/asm/ftrace.h:42:
In file included from include/linux/compat.h:20:
In file included from include/uapi/linux/unistd.h:8:
In file included from arch/arm64/include/asm/unistd.h:47:
In file included from arch/arm64/include/uapi/asm/unistd.h:24:
>> include/uapi/asm-generic/unistd.h:875:50: error: too many arguments provided to function-like macro invocation
__SYSCALL(__NR_futex_requeue, sys_futex_requeue, compat_sys_futex_requeue)
^
include/uapi/asm-generic/unistd.h:16:9: note: macro '__SYSCALL' defined here
#define __SYSCALL(x, y)
^
include/uapi/asm-generic/unistd.h:875:1: error: unknown type name '__SYSCALL'
__SYSCALL(__NR_futex_requeue, sys_futex_requeue, compat_sys_futex_requeue)
^
In file included from arch/arm64/kernel/asm-offsets.c:14:
In file included from include/linux/kvm_host.h:36:
In file included from arch/arm64/include/asm/kvm_host.h:21:
In file included from arch/arm64/include/asm/arch_gicv3.h:17:
In file included from arch/arm64/include/asm/cacheflush.h:11:
In file included from include/linux/kgdb.h:19:
In file included from include/linux/kprobes.h:29:
In file included from include/linux/ftrace.h:22:
In file included from arch/arm64/include/asm/ftrace.h:42:
In file included from include/linux/compat.h:22:
In file included from arch/arm64/include/asm/compat.h:8:
>> include/asm-generic/compat.h:6:12: error: expected ';' after top level declarator
typedef u32 compat_size_t;
^
;
In file included from arch/arm64/kernel/asm-offsets.c:14:
In file included from include/linux/kvm_host.h:36:
In file included from arch/arm64/include/asm/kvm_host.h:21:
In file included from arch/arm64/include/asm/arch_gicv3.h:17:
In file included from arch/arm64/include/asm/cacheflush.h:11:
In file included from include/linux/kgdb.h:19:
In file included from include/linux/kprobes.h:29:
In file included from include/linux/ftrace.h:22:
In file included from arch/arm64/include/asm/ftrace.h:42:
>> include/linux/compat.h:96:2: error: unknown type name 'compat_size_t'; did you mean 'compat_ssize_t'?
compat_size_t iov_len;
^~~~~~~~~~~~~
compat_ssize_t
include/asm-generic/compat.h:7:13: note: 'compat_ssize_t' declared here
typedef s32 compat_ssize_t;
^
4 errors generated.
make[2]: *** [scripts/Makefile.build:117: arch/arm64/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1201: prepare0] Error 2
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
In file included from arch/arm64/kernel/asm-offsets.c:14:
In file included from include/linux/kvm_host.h:36:
In file included from arch/arm64/include/asm/kvm_host.h:21:
In file included from arch/arm64/include/asm/arch_gicv3.h:17:
In file included from arch/arm64/include/asm/cacheflush.h:11:
In file included from include/linux/kgdb.h:19:
In file included from include/linux/kprobes.h:29:
In file included from include/linux/ftrace.h:22:
In file included from arch/arm64/include/asm/ftrace.h:42:
In file included from include/linux/compat.h:20:
In file included from include/uapi/linux/unistd.h:8:
In file included from arch/arm64/include/asm/unistd.h:47:
In file included from arch/arm64/include/uapi/asm/unistd.h:24:
>> include/uapi/asm-generic/unistd.h:875:50: error: too many arguments provided to function-like macro invocation
__SYSCALL(__NR_futex_requeue, sys_futex_requeue, compat_sys_futex_requeue)
^
include/uapi/asm-generic/unistd.h:16:9: note: macro '__SYSCALL' defined here
#define __SYSCALL(x, y)
^
include/uapi/asm-generic/unistd.h:875:1: error: unknown type name '__SYSCALL'
__SYSCALL(__NR_futex_requeue, sys_futex_requeue, compat_sys_futex_requeue)
^
In file included from arch/arm64/kernel/asm-offsets.c:14:
In file included from include/linux/kvm_host.h:36:
In file included from arch/arm64/include/asm/kvm_host.h:21:
In file included from arch/arm64/include/asm/arch_gicv3.h:17:
In file included from arch/arm64/include/asm/cacheflush.h:11:
In file included from include/linux/kgdb.h:19:
In file included from include/linux/kprobes.h:29:
In file included from include/linux/ftrace.h:22:
In file included from arch/arm64/include/asm/ftrace.h:42:
In file included from include/linux/compat.h:22:
In file included from arch/arm64/include/asm/compat.h:8:
>> include/asm-generic/compat.h:6:12: error: expected ';' after top level declarator
typedef u32 compat_size_t;
^
;
In file included from arch/arm64/kernel/asm-offsets.c:14:
In file included from include/linux/kvm_host.h:36:
In file included from arch/arm64/include/asm/kvm_host.h:21:
In file included from arch/arm64/include/asm/arch_gicv3.h:17:
In file included from arch/arm64/include/asm/cacheflush.h:11:
In file included from include/linux/kgdb.h:19:
In file included from include/linux/kprobes.h:29:
In file included from include/linux/ftrace.h:22:
In file included from arch/arm64/include/asm/ftrace.h:42:
>> include/linux/compat.h:96:2: error: unknown type name 'compat_size_t'; did you mean 'compat_ssize_t'?
compat_size_t iov_len;
^~~~~~~~~~~~~
compat_ssize_t
include/asm-generic/compat.h:7:13: note: 'compat_ssize_t' declared here
typedef s32 compat_ssize_t;
^
4 errors generated.
make[2]: *** [scripts/Makefile.build:117: arch/arm64/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1201: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +875 include/uapi/asm-generic/unistd.h
873
874 #define __NR_futex_requeue 445
> 875 __SYSCALL(__NR_futex_requeue, sys_futex_requeue, compat_sys_futex_requeue)
876
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
Re: [RFC PATCH 03/13] futex2: Implement vectorized wait
by kernel test robot
Hi "André,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on tip/locking/core]
[also build test ERROR on tip/x86/asm arm64/for-next/core tip/perf/core linus/master v5.11]
[cannot apply to next-20210212]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Andr-Almeida/Add-futex2-syscalls...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 3765d01bab73bdb920ef711203978f02cd26e4da
config: powerpc64-randconfig-r036-20210215 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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/0day-ci/linux/commit/4911d0983833ed16da856a76c9ed94231...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Andr-Almeida/Add-futex2-syscalls/20210215-233004
git checkout 4911d0983833ed16da856a76c9ed94231a705243
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64
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 arch/powerpc/kernel/asm-offsets.c:14:
>> include/linux/compat.h:666:12: error: expected ')'
struct __kernel_timespec __user *timo);
^
include/linux/compat.h:664:39: note: to match this '('
asmlinkage long compat_sys_futex_waitv(struct compat_futex_waitv *waiters,
^
In file included from arch/powerpc/kernel/asm-offsets.c:21:
include/linux/mman.h:155:9: warning: division by zero is undefined [-Wdivision-by-zero]
_calc_vm_trans(flags, MAP_LOCKED, VM_LOCKED ) |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/mman.h:133:21: note: expanded from macro '_calc_vm_trans'
: ((x) & (bit1)) / ((bit1) / (bit2))))
^ ~~~~~~~~~~~~~~~~~
include/linux/mman.h:156:9: warning: division by zero is undefined [-Wdivision-by-zero]
_calc_vm_trans(flags, MAP_SYNC, VM_SYNC ) |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/mman.h:133:21: note: expanded from macro '_calc_vm_trans'
: ((x) & (bit1)) / ((bit1) / (bit2))))
^ ~~~~~~~~~~~~~~~~~
In file included from arch/powerpc/kernel/asm-offsets.c:23:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:23:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_RET(inb, u8, (unsigned long port), (port), pio, port)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:607:9: note: expanded from macro 'DEF_PCI_AC_RET'
return __do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:229:1: note: expanded from here
__do_inb
^
arch/powerpc/include/asm/io.h:538:53: note: expanded from macro '__do_inb'
#define __do_inb(port) readb((PCI_IO_ADDR)_IO_BASE + port);
~~~~~~~~~~~~~~~~~~~~~ ^
In file included from arch/powerpc/kernel/asm-offsets.c:23:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:24:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_RET(inw, u16, (unsigned long port), (port), pio, port)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:607:9: note: expanded from macro 'DEF_PCI_AC_RET'
return __do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:231:1: note: expanded from here
__do_inw
^
arch/powerpc/include/asm/io.h:539:53: note: expanded from macro '__do_inw'
#define __do_inw(port) readw((PCI_IO_ADDR)_IO_BASE + port);
~~~~~~~~~~~~~~~~~~~~~ ^
In file included from arch/powerpc/kernel/asm-offsets.c:23:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:25:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_RET(inl, u32, (unsigned long port), (port), pio, port)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:607:9: note: expanded from macro 'DEF_PCI_AC_RET'
return __do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:233:1: note: expanded from here
__do_inl
^
arch/powerpc/include/asm/io.h:540:53: note: expanded from macro '__do_inl'
#define __do_inl(port) readl((PCI_IO_ADDR)_IO_BASE + port);
~~~~~~~~~~~~~~~~~~~~~ ^
In file included from arch/powerpc/kernel/asm-offsets.c:23:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
--
In file included from arch/powerpc/kernel/asm-offsets.c:14:
>> include/linux/compat.h:666:12: error: expected ')'
struct __kernel_timespec __user *timo);
^
include/linux/compat.h:664:39: note: to match this '('
asmlinkage long compat_sys_futex_waitv(struct compat_futex_waitv *waiters,
^
In file included from arch/powerpc/kernel/asm-offsets.c:21:
include/linux/mman.h:155:9: warning: division by zero is undefined [-Wdivision-by-zero]
_calc_vm_trans(flags, MAP_LOCKED, VM_LOCKED ) |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/mman.h:133:21: note: expanded from macro '_calc_vm_trans'
: ((x) & (bit1)) / ((bit1) / (bit2))))
^ ~~~~~~~~~~~~~~~~~
include/linux/mman.h:156:9: warning: division by zero is undefined [-Wdivision-by-zero]
_calc_vm_trans(flags, MAP_SYNC, VM_SYNC ) |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/mman.h:133:21: note: expanded from macro '_calc_vm_trans'
: ((x) & (bit1)) / ((bit1) / (bit2))))
^ ~~~~~~~~~~~~~~~~~
In file included from arch/powerpc/kernel/asm-offsets.c:23:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:23:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_RET(inb, u8, (unsigned long port), (port), pio, port)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:607:9: note: expanded from macro 'DEF_PCI_AC_RET'
return __do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:229:1: note: expanded from here
__do_inb
^
arch/powerpc/include/asm/io.h:538:53: note: expanded from macro '__do_inb'
#define __do_inb(port) readb((PCI_IO_ADDR)_IO_BASE + port);
~~~~~~~~~~~~~~~~~~~~~ ^
In file included from arch/powerpc/kernel/asm-offsets.c:23:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:24:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_RET(inw, u16, (unsigned long port), (port), pio, port)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:607:9: note: expanded from macro 'DEF_PCI_AC_RET'
return __do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:231:1: note: expanded from here
__do_inw
^
arch/powerpc/include/asm/io.h:539:53: note: expanded from macro '__do_inw'
#define __do_inw(port) readw((PCI_IO_ADDR)_IO_BASE + port);
~~~~~~~~~~~~~~~~~~~~~ ^
In file included from arch/powerpc/kernel/asm-offsets.c:23:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:25:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_RET(inl, u32, (unsigned long port), (port), pio, port)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:607:9: note: expanded from macro 'DEF_PCI_AC_RET'
return __do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:233:1: note: expanded from here
__do_inl
^
arch/powerpc/include/asm/io.h:540:53: note: expanded from macro '__do_inl'
#define __do_inl(port) readl((PCI_IO_ADDR)_IO_BASE + port);
~~~~~~~~~~~~~~~~~~~~~ ^
In file included from arch/powerpc/kernel/asm-offsets.c:23:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:13:
In file included from include/linux/cgroup.h:26:
In file included from include/linux/kernel_stat.h:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
vim +666 include/linux/compat.h
647
648 /* kernel/exit.c */
649 asmlinkage long compat_sys_waitid(int, compat_pid_t,
650 struct compat_siginfo __user *, int,
651 struct compat_rusage __user *);
652
653
654
655 /* kernel/futex.c */
656 asmlinkage long
657 compat_sys_set_robust_list(struct compat_robust_list_head __user *head,
658 compat_size_t len);
659 asmlinkage long
660 compat_sys_get_robust_list(int pid, compat_uptr_t __user *head_ptr,
661 compat_size_t __user *len_ptr);
662
663 /* kernel/futex2.c */
664 asmlinkage long compat_sys_futex_waitv(struct compat_futex_waitv *waiters,
665 compat_uint_t nr_futexes, compat_uint_t flags
> 666 struct __kernel_timespec __user *timo);
667
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[frank-w-bpi-r2-4.14:5.11-rc 15/18] drivers/misc/mediatek/btif/common/plat_inc/plat_common.h:64:2: warning: function 'hal_log_print' might be a candidate for 'gnu_printf' format attribute
by kernel test robot
tree: https://github.com/frank-w/BPI-R2-4.14 5.11-rc
head: 53902a2a421d0384bda73803e4df56ff3fbc1bc6
commit: c73dac68fd0eb1d172e2c05813e37f5830f18672 [15/18] mt6625l: include wifi-code
config: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-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/frank-w/BPI-R2-4.14/commit/c73dac68fd0eb1d172e2c05813e...
git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R2-4.14
git fetch --no-tags frank-w-bpi-r2-4.14 5.11-rc
git checkout c73dac68fd0eb1d172e2c05813e37f5830f18672
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from drivers/misc/mediatek/btif/common/plat_inc/btif_pub.h:17,
from drivers/misc/mediatek/btif/common/mtk_btif.c:37:
drivers/misc/mediatek/btif/common/plat_inc/plat_common.h: In function 'hal_log_print':
>> drivers/misc/mediatek/btif/common/plat_inc/plat_common.h:64:2: warning: function 'hal_log_print' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
64 | vsnprintf(temp_sring, DBG_LOG_STR_SIZE, str, args);
| ^~~~~~~~~
drivers/misc/mediatek/btif/common/mtk_btif.c: In function 'mtk_btif_restore_noirq':
>> drivers/misc/mediatek/btif/common/mtk_btif.c:379:6: warning: variable 'i_ret' set but not used [-Wunused-but-set-variable]
379 | int i_ret = 0;
| ^~~~~
drivers/misc/mediatek/btif/common/mtk_btif.c: In function 'flag_store':
>> drivers/misc/mediatek/btif/common/mtk_btif.c:773:6: warning: variable 'result' set but not used [-Wunused-but-set-variable]
773 | int result = 0;
| ^~~~~~
drivers/misc/mediatek/btif/common/mtk_btif.c: In function 'btif_log_buf_dmp_out':
>> drivers/misc/mediatek/btif/common/mtk_btif.c:3029:17: warning: variable 'p_buf' set but not used [-Wunused-but-set-variable]
3029 | unsigned char *p_buf = NULL;
| ^~~~~
--
In file included from drivers/misc/mediatek/btif/common/plat_inc/btif_pub.h:17,
from drivers/misc/mediatek/btif/common/inc/mtk_btif.h:37,
from drivers/misc/mediatek/btif/common/mtk_btif_exp.c:20:
drivers/misc/mediatek/btif/common/plat_inc/plat_common.h: In function 'hal_log_print':
>> drivers/misc/mediatek/btif/common/plat_inc/plat_common.h:64:2: warning: function 'hal_log_print' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
64 | vsnprintf(temp_sring, DBG_LOG_STR_SIZE, str, args);
| ^~~~~~~~~
--
In file included from drivers/misc/mediatek/btif/common/plat_inc/btif_dma_pub.h:19,
from drivers/misc/mediatek/btif/common/plat_inc/btif_dma_priv.h:18,
from drivers/misc/mediatek/btif/common/btif_dma_plat.c:22:
drivers/misc/mediatek/btif/common/plat_inc/plat_common.h: In function 'hal_log_print':
>> drivers/misc/mediatek/btif/common/plat_inc/plat_common.h:64:2: warning: function 'hal_log_print' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
64 | vsnprintf(temp_sring, DBG_LOG_STR_SIZE, str, args);
| ^~~~~~~~~
drivers/misc/mediatek/btif/common/btif_dma_plat.c: In function 'hal_dma_pm_ops':
>> drivers/misc/mediatek/btif/common/btif_dma_plat.c:1313:17: warning: variable 'flag' set but not used [-Wunused-but-set-variable]
1313 | unsigned int flag = 0;
| ^~~~
--
In file included from drivers/misc/mediatek/btif/common/plat_inc/btif_pub.h:17,
from drivers/misc/mediatek/btif/common/btif_plat.c:21:
drivers/misc/mediatek/btif/common/plat_inc/plat_common.h: In function 'hal_log_print':
>> drivers/misc/mediatek/btif/common/plat_inc/plat_common.h:64:2: warning: function 'hal_log_print' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
64 | vsnprintf(temp_sring, DBG_LOG_STR_SIZE, str, args);
| ^~~~~~~~~
drivers/misc/mediatek/btif/common/btif_plat.c: In function 'hal_btif_pm_ops':
>> drivers/misc/mediatek/btif/common/btif_plat.c:1343:17: warning: variable 'flag' set but not used [-Wunused-but-set-variable]
1343 | unsigned int flag = 0;
| ^~~~
vim +64 drivers/misc/mediatek/btif/common/plat_inc/plat_common.h
b9e0bfd476882d Frank Wunderlich 2020-12-28 56
b9e0bfd476882d Frank Wunderlich 2020-12-28 57 /*Log defination*/
b9e0bfd476882d Frank Wunderlich 2020-12-28 58 static int hal_log_print(const char *str, ...)
b9e0bfd476882d Frank Wunderlich 2020-12-28 59 {
b9e0bfd476882d Frank Wunderlich 2020-12-28 60 va_list args;
b9e0bfd476882d Frank Wunderlich 2020-12-28 61 char temp_sring[DBG_LOG_STR_SIZE];
b9e0bfd476882d Frank Wunderlich 2020-12-28 62
b9e0bfd476882d Frank Wunderlich 2020-12-28 63 va_start(args, str);
b9e0bfd476882d Frank Wunderlich 2020-12-28 @64 vsnprintf(temp_sring, DBG_LOG_STR_SIZE, str, args);
b9e0bfd476882d Frank Wunderlich 2020-12-28 65 va_end(args);
b9e0bfd476882d Frank Wunderlich 2020-12-28 66
b9e0bfd476882d Frank Wunderlich 2020-12-28 67 pr_err("%s", temp_sring);
b9e0bfd476882d Frank Wunderlich 2020-12-28 68
b9e0bfd476882d Frank Wunderlich 2020-12-28 69 return 0;
b9e0bfd476882d Frank Wunderlich 2020-12-28 70 }
b9e0bfd476882d Frank Wunderlich 2020-12-28 71
:::::: The code at line 64 was first introduced by commit
:::::: b9e0bfd476882d78671888c3102843cce617edbd mt6625l: add driver from 5.10
:::::: TO: Frank Wunderlich <frank-w(a)public-files.de>
:::::: CC: Frank Wunderlich <frank-w(a)public-files.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
Re: [RFC PATCH 04/13] futex2: Implement requeue operation
by kernel test robot
Hi "André,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on tip/locking/core]
[also build test ERROR on tip/x86/asm arm64/for-next/core tip/perf/core linus/master v5.11]
[cannot apply to next-20210212]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Andr-Almeida/Add-futex2-syscalls...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 3765d01bab73bdb920ef711203978f02cd26e4da
config: riscv-nommu_k210_defconfig (attached as .config)
compiler: riscv64-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/0day-ci/linux/commit/455187a88266576bf8dee8f386d9b1637...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Andr-Almeida/Add-futex2-syscalls/20210215-233004
git checkout 455187a88266576bf8dee8f386d9b16378e6cd93
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv
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 arch/riscv/include/uapi/asm/unistd.h:24,
from arch/riscv/include/asm/unistd.h:13,
from arch/riscv/include/asm/seccomp.h:6,
from include/linux/seccomp.h:21,
from include/linux/sched.h:22,
from arch/riscv/kernel/asm-offsets.c:10:
include/uapi/asm-generic/unistd.h:875:74: error: macro "__SYSCALL" passed 3 arguments, but takes just 2
875 | __SYSCALL(__NR_futex_requeue, sys_futex_requeue, compat_sys_futex_requeue)
| ^
include/uapi/asm-generic/unistd.h:16: note: macro "__SYSCALL" defined here
16 | #define __SYSCALL(x, y)
|
In file included from arch/riscv/include/uapi/asm/unistd.h:24,
from arch/riscv/include/asm/unistd.h:13,
from include/uapi/linux/unistd.h:8,
from include/asm-generic/seccomp.h:11,
from arch/riscv/include/asm/seccomp.h:8,
from include/linux/seccomp.h:21,
from include/linux/sched.h:22,
from arch/riscv/kernel/asm-offsets.c:10:
include/uapi/asm-generic/unistd.h:875:74: error: macro "__SYSCALL" passed 3 arguments, but takes just 2
875 | __SYSCALL(__NR_futex_requeue, sys_futex_requeue, compat_sys_futex_requeue)
| ^
In file included from arch/riscv/include/uapi/asm/unistd.h:24,
from arch/riscv/include/asm/unistd.h:13,
from arch/riscv/include/asm/seccomp.h:6,
from include/linux/seccomp.h:21,
from include/linux/sched.h:22,
from arch/riscv/kernel/asm-offsets.c:10:
include/uapi/asm-generic/unistd.h:16: note: macro "__SYSCALL" defined here
16 | #define __SYSCALL(x, y)
|
include/uapi/asm-generic/unistd.h:875:1: error: unknown type name '__SYSCALL'; did you mean 'EXC_SYSCALL'?
875 | __SYSCALL(__NR_futex_requeue, sys_futex_requeue, compat_sys_futex_requeue)
| ^~~~~~~~~
| EXC_SYSCALL
In file included from arch/riscv/include/uapi/asm/unistd.h:24,
from arch/riscv/include/asm/unistd.h:13,
from include/uapi/linux/unistd.h:8,
from include/asm-generic/seccomp.h:11,
from arch/riscv/include/asm/seccomp.h:8,
from include/linux/seccomp.h:21,
from include/linux/sched.h:22,
from arch/riscv/kernel/asm-offsets.c:10:
>> include/uapi/asm-generic/unistd.h:875:10: error: expected ';' before 'struct'
875 | __SYSCALL(__NR_futex_requeue, sys_futex_requeue, compat_sys_futex_requeue)
| ^
| ;
--
In file included from arch/riscv/include/uapi/asm/unistd.h:24,
from arch/riscv/include/asm/unistd.h:13,
from arch/riscv/include/asm/seccomp.h:6,
from include/linux/seccomp.h:21,
from include/linux/sched.h:22,
from arch/riscv/kernel/asm-offsets.c:10:
include/uapi/asm-generic/unistd.h:875:74: error: macro "__SYSCALL" passed 3 arguments, but takes just 2
875 | __SYSCALL(__NR_futex_requeue, sys_futex_requeue, compat_sys_futex_requeue)
| ^
include/uapi/asm-generic/unistd.h:16: note: macro "__SYSCALL" defined here
16 | #define __SYSCALL(x, y)
|
In file included from arch/riscv/include/uapi/asm/unistd.h:24,
from arch/riscv/include/asm/unistd.h:13,
from include/uapi/linux/unistd.h:8,
from include/asm-generic/seccomp.h:11,
from arch/riscv/include/asm/seccomp.h:8,
from include/linux/seccomp.h:21,
from include/linux/sched.h:22,
from arch/riscv/kernel/asm-offsets.c:10:
include/uapi/asm-generic/unistd.h:875:74: error: macro "__SYSCALL" passed 3 arguments, but takes just 2
875 | __SYSCALL(__NR_futex_requeue, sys_futex_requeue, compat_sys_futex_requeue)
| ^
In file included from arch/riscv/include/uapi/asm/unistd.h:24,
from arch/riscv/include/asm/unistd.h:13,
from arch/riscv/include/asm/seccomp.h:6,
from include/linux/seccomp.h:21,
from include/linux/sched.h:22,
from arch/riscv/kernel/asm-offsets.c:10:
include/uapi/asm-generic/unistd.h:16: note: macro "__SYSCALL" defined here
16 | #define __SYSCALL(x, y)
|
include/uapi/asm-generic/unistd.h:875:1: error: unknown type name '__SYSCALL'; did you mean 'EXC_SYSCALL'?
875 | __SYSCALL(__NR_futex_requeue, sys_futex_requeue, compat_sys_futex_requeue)
| ^~~~~~~~~
| EXC_SYSCALL
In file included from arch/riscv/include/uapi/asm/unistd.h:24,
from arch/riscv/include/asm/unistd.h:13,
from include/uapi/linux/unistd.h:8,
from include/asm-generic/seccomp.h:11,
from arch/riscv/include/asm/seccomp.h:8,
from include/linux/seccomp.h:21,
from include/linux/sched.h:22,
from arch/riscv/kernel/asm-offsets.c:10:
>> include/uapi/asm-generic/unistd.h:875:10: error: expected ';' before 'struct'
875 | __SYSCALL(__NR_futex_requeue, sys_futex_requeue, compat_sys_futex_requeue)
| ^
| ;
make[2]: *** [scripts/Makefile.build:117: arch/riscv/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1201: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +875 include/uapi/asm-generic/unistd.h
873
874 #define __NR_futex_requeue 445
> 875 __SYSCALL(__NR_futex_requeue, sys_futex_requeue, compat_sys_futex_requeue)
876
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
Re: [RFC PATCH 03/13] futex2: Implement vectorized wait
by kernel test robot
Hi "André,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on tip/locking/core]
[also build test ERROR on tip/x86/asm arm64/for-next/core tip/perf/core linus/master v5.11]
[cannot apply to next-20210212]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Andr-Almeida/Add-futex2-syscalls...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 3765d01bab73bdb920ef711203978f02cd26e4da
config: powerpc64-randconfig-s031-20210215 (attached as .config)
compiler: powerpc64le-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-215-g0fb77bb6-dirty
# https://github.com/0day-ci/linux/commit/4911d0983833ed16da856a76c9ed94231...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Andr-Almeida/Add-futex2-syscalls/20210215-233004
git checkout 4911d0983833ed16da856a76c9ed94231a705243
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=powerpc64
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 arch/powerpc/kernel/asm-offsets.c:14:
>> include/linux/compat.h:666:12: error: expected ';', ',' or ')' before 'struct'
666 | struct __kernel_timespec __user *timo);
| ^~~~~~
--
In file included from arch/powerpc/kernel/asm-offsets.c:14:
>> include/linux/compat.h:666:12: error: expected ';', ',' or ')' before 'struct'
666 | struct __kernel_timespec __user *timo);
| ^~~~~~
make[2]: *** [scripts/Makefile.build:117: arch/powerpc/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1201: prepare0] Error 2
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
In file included from arch/powerpc/kernel/asm-offsets.c:14:
>> include/linux/compat.h:666:12: error: expected ';', ',' or ')' before 'struct'
666 | struct __kernel_timespec __user *timo);
| ^~~~~~
make[2]: *** [scripts/Makefile.build:117: arch/powerpc/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1201: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +666 include/linux/compat.h
647
648 /* kernel/exit.c */
649 asmlinkage long compat_sys_waitid(int, compat_pid_t,
650 struct compat_siginfo __user *, int,
651 struct compat_rusage __user *);
652
653
654
655 /* kernel/futex.c */
656 asmlinkage long
657 compat_sys_set_robust_list(struct compat_robust_list_head __user *head,
658 compat_size_t len);
659 asmlinkage long
660 compat_sys_get_robust_list(int pid, compat_uptr_t __user *head_ptr,
661 compat_size_t __user *len_ptr);
662
663 /* kernel/futex2.c */
664 asmlinkage long compat_sys_futex_waitv(struct compat_futex_waitv *waiters,
665 compat_uint_t nr_futexes, compat_uint_t flags
> 666 struct __kernel_timespec __user *timo);
667
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
[frank-w-bpi-r2-4.14:5.11-rc 9/18] drivers/pci/probe.c:930:39: error: 'struct device' has no member named 'msi_domain'; did you mean
by kernel test robot
Hi Marc,
FYI, the error/warning still remains.
tree: https://github.com/frank-w/BPI-R2-4.14 5.11-rc
head: 53902a2a421d0384bda73803e4df56ff3fbc1bc6
commit: 7aa45ecfc9a987d4b0f719f906fe892254d39349 [9/18] pci: fix MSI issue part 2
config: x86_64-randconfig-m001-20210215 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/frank-w/BPI-R2-4.14/commit/7aa45ecfc9a987d4b0f719f906f...
git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R2-4.14
git fetch --no-tags frank-w-bpi-r2-4.14 5.11-rc
git checkout 7aa45ecfc9a987d4b0f719f906fe892254d39349
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
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 >>):
drivers/pci/probe.c: In function 'pci_register_host_bridge':
>> drivers/pci/probe.c:930:39: error: 'struct device' has no member named 'msi_domain'; did you mean 'pm_domain'?
930 | (bridge->msi_domain && !bus->dev.msi_domain))
| ^~~~~~~~~~
| pm_domain
vim +930 drivers/pci/probe.c
904
905 b = pci_find_bus(pci_domain_nr(bus), bridge->busnr);
906 if (b) {
907 /* Ignore it if we already got here via a different bridge */
908 dev_dbg(&b->dev, "bus already known\n");
909 err = -EEXIST;
910 goto free;
911 }
912
913 dev_set_name(&bridge->dev, "pci%04x:%02x", pci_domain_nr(bus),
914 bridge->busnr);
915
916 err = pcibios_root_bridge_prepare(bridge);
917 if (err)
918 goto free;
919
920 err = device_add(&bridge->dev);
921 if (err) {
922 put_device(&bridge->dev);
923 goto free;
924 }
925 bus->bridge = get_device(&bridge->dev);
926 device_enable_async_suspend(bus->bridge);
927 pci_set_bus_of_node(bus);
928 pci_set_bus_msi_domain(bus);
929 if (bridge->no_msi ||
> 930 (bridge->msi_domain && !bus->dev.msi_domain))
931 bus->bus_flags |= PCI_BUS_FLAGS_NO_MSI;
932
933 if (!parent)
934 set_dev_node(bus->bridge, pcibus_to_node(bus));
935
936 bus->dev.class = &pcibus_class;
937 bus->dev.parent = bus->bridge;
938
939 dev_set_name(&bus->dev, "%04x:%02x", pci_domain_nr(bus), bus->number);
940 name = dev_name(&bus->dev);
941
942 err = device_register(&bus->dev);
943 if (err)
944 goto unregister;
945
946 pcibios_add_bus(bus);
947
948 if (bus->ops->add_bus) {
949 err = bus->ops->add_bus(bus);
950 if (WARN_ON(err < 0))
951 dev_err(&bus->dev, "failed to add bus: %d\n", err);
952 }
953
954 /* Create legacy_io and legacy_mem files for this bus */
955 pci_create_legacy_files(bus);
956
957 if (parent)
958 dev_info(parent, "PCI host bridge to bus %s\n", name);
959 else
960 pr_info("PCI host bridge to bus %s\n", name);
961
962 if (nr_node_ids > 1 && pcibus_to_node(bus) == NUMA_NO_NODE)
963 dev_warn(&bus->dev, "Unknown NUMA node; performance will be reduced\n");
964
965 /* Add initial resources to the bus */
966 resource_list_for_each_entry_safe(window, n, &resources) {
967 list_move_tail(&window->node, &bridge->windows);
968 offset = window->offset;
969 res = window->res;
970
971 if (res->flags & IORESOURCE_BUS)
972 pci_bus_insert_busn_res(bus, bus->number, res->end);
973 else
974 pci_bus_add_resource(bus, res, 0);
975
976 if (offset) {
977 if (resource_type(res) == IORESOURCE_IO)
978 fmt = " (bus address [%#06llx-%#06llx])";
979 else
980 fmt = " (bus address [%#010llx-%#010llx])";
981
982 snprintf(addr, sizeof(addr), fmt,
983 (unsigned long long)(res->start - offset),
984 (unsigned long long)(res->end - offset));
985 } else
986 addr[0] = '\0';
987
988 dev_info(&bus->dev, "root bus resource %pR%s\n", res, addr);
989 }
990
991 down_write(&pci_bus_sem);
992 list_add_tail(&bus->node, &pci_root_buses);
993 up_write(&pci_bus_sem);
994
995 return 0;
996
997 unregister:
998 put_device(&bridge->dev);
999 device_del(&bridge->dev);
1000
1001 free:
1002 kfree(bus);
1003 return err;
1004 }
1005
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
Re: [PATCH 1/1] v4l: async: Fix kerneldoc documentation for async functions
by kernel test robot
Hi Sakari,
I love your patch! Yet something to improve:
[auto build test ERROR on linuxtv-media/master]
[also build test ERROR on next-20210212]
[cannot apply to v5.11]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Sakari-Ailus/v4l-async-Fix-kerne...
base: git://linuxtv.org/media_tree.git master
config: x86_64-randconfig-r035-20210215 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/0day-ci/linux/commit/8e8c47cba531c1706847f07a4af5cd19a...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Sakari-Ailus/v4l-async-Fix-kerneldoc-documentation-for-async-functions/20210215-204146
git checkout 8e8c47cba531c1706847f07a4af5cd19aa33f351
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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 >>):
>> drivers/media/v4l2-core/v4l2-fwnode.c:945:9: error: expected expression
asd = v4l2_async_notifier_add_fwnode_subdev(notifier,
^
include/media/v4l2-async.h:179:12: note: expanded from macro 'v4l2_async_notifier_add_fwnode_subdev'
((__type *)__v4l2_async_notifier_add_fwnode_subdev(notifier, fwnode, \
^
>> drivers/media/v4l2-core/v4l2-fwnode.c:945:9: error: use of undeclared identifier '__type'; did you mean '_ctype'?
include/media/v4l2-async.h:179:4: note: expanded from macro 'v4l2_async_notifier_add_fwnode_subdev'
((__type *)__v4l2_async_notifier_add_fwnode_subdev(notifier, fwnode, \
^
include/linux/ctype.h:21:28: note: '_ctype' declared here
extern const unsigned char _ctype[];
^
drivers/media/v4l2-core/v4l2-fwnode.c:1246:9: error: expected expression
asd = v4l2_async_notifier_add_fwnode_subdev(notifier, fwnode,
^
include/media/v4l2-async.h:179:12: note: expanded from macro 'v4l2_async_notifier_add_fwnode_subdev'
((__type *)__v4l2_async_notifier_add_fwnode_subdev(notifier, fwnode, \
^
drivers/media/v4l2-core/v4l2-fwnode.c:1246:9: error: use of undeclared identifier '__type'; did you mean '_ctype'?
include/media/v4l2-async.h:179:4: note: expanded from macro 'v4l2_async_notifier_add_fwnode_subdev'
((__type *)__v4l2_async_notifier_add_fwnode_subdev(notifier, fwnode, \
^
include/linux/ctype.h:21:28: note: '_ctype' declared here
extern const unsigned char _ctype[];
^
4 errors generated.
vim +945 drivers/media/v4l2-core/v4l2-fwnode.c
9ca46531213295 Sakari Ailus 2017-08-17 902
d84285390f0722 Sakari Ailus 2017-06-20 903 /*
d84285390f0722 Sakari Ailus 2017-06-20 904 * v4l2_fwnode_reference_parse - parse references for async sub-devices
d84285390f0722 Sakari Ailus 2017-06-20 905 * @dev: the device node the properties of which are parsed for references
d84285390f0722 Sakari Ailus 2017-06-20 906 * @notifier: the async notifier where the async subdevs will be added
d84285390f0722 Sakari Ailus 2017-06-20 907 * @prop: the name of the property
d84285390f0722 Sakari Ailus 2017-06-20 908 *
d84285390f0722 Sakari Ailus 2017-06-20 909 * Return: 0 on success
d84285390f0722 Sakari Ailus 2017-06-20 910 * -ENOENT if no entries were found
d84285390f0722 Sakari Ailus 2017-06-20 911 * -ENOMEM if memory allocation failed
d84285390f0722 Sakari Ailus 2017-06-20 912 * -EINVAL if property parsing failed
d84285390f0722 Sakari Ailus 2017-06-20 913 */
6087b21533fed7 Mauro Carvalho Chehab 2018-10-04 914 static int v4l2_fwnode_reference_parse(struct device *dev,
6087b21533fed7 Mauro Carvalho Chehab 2018-10-04 915 struct v4l2_async_notifier *notifier,
d84285390f0722 Sakari Ailus 2017-06-20 916 const char *prop)
d84285390f0722 Sakari Ailus 2017-06-20 917 {
d84285390f0722 Sakari Ailus 2017-06-20 918 struct fwnode_reference_args args;
d84285390f0722 Sakari Ailus 2017-06-20 919 unsigned int index;
d84285390f0722 Sakari Ailus 2017-06-20 920 int ret;
d84285390f0722 Sakari Ailus 2017-06-20 921
d84285390f0722 Sakari Ailus 2017-06-20 922 for (index = 0;
6087b21533fed7 Mauro Carvalho Chehab 2018-10-04 923 !(ret = fwnode_property_get_reference_args(dev_fwnode(dev),
6087b21533fed7 Mauro Carvalho Chehab 2018-10-04 924 prop, NULL, 0,
6087b21533fed7 Mauro Carvalho Chehab 2018-10-04 925 index, &args));
d84285390f0722 Sakari Ailus 2017-06-20 926 index++)
d84285390f0722 Sakari Ailus 2017-06-20 927 fwnode_handle_put(args.fwnode);
d84285390f0722 Sakari Ailus 2017-06-20 928
d84285390f0722 Sakari Ailus 2017-06-20 929 if (!index)
d84285390f0722 Sakari Ailus 2017-06-20 930 return -ENOENT;
d84285390f0722 Sakari Ailus 2017-06-20 931
d84285390f0722 Sakari Ailus 2017-06-20 932 /*
d84285390f0722 Sakari Ailus 2017-06-20 933 * Note that right now both -ENODATA and -ENOENT may signal
d84285390f0722 Sakari Ailus 2017-06-20 934 * out-of-bounds access. Return the error in cases other than that.
d84285390f0722 Sakari Ailus 2017-06-20 935 */
d84285390f0722 Sakari Ailus 2017-06-20 936 if (ret != -ENOENT && ret != -ENODATA)
d84285390f0722 Sakari Ailus 2017-06-20 937 return ret;
d84285390f0722 Sakari Ailus 2017-06-20 938
6087b21533fed7 Mauro Carvalho Chehab 2018-10-04 939 for (index = 0;
6087b21533fed7 Mauro Carvalho Chehab 2018-10-04 940 !fwnode_property_get_reference_args(dev_fwnode(dev), prop, NULL,
6087b21533fed7 Mauro Carvalho Chehab 2018-10-04 941 0, index, &args);
d84285390f0722 Sakari Ailus 2017-06-20 942 index++) {
d84285390f0722 Sakari Ailus 2017-06-20 943 struct v4l2_async_subdev *asd;
d84285390f0722 Sakari Ailus 2017-06-20 944
6087b21533fed7 Mauro Carvalho Chehab 2018-10-04 @945 asd = v4l2_async_notifier_add_fwnode_subdev(notifier,
6087b21533fed7 Mauro Carvalho Chehab 2018-10-04 946 args.fwnode,
b01edcbd409cf7 Laurent Pinchart 2021-01-18 947 struct v4l2_async_subdev);
016413d967061f Sakari Ailus 2019-04-04 948 fwnode_handle_put(args.fwnode);
eae2aed1eab9bf Steve Longerbeam 2018-09-29 949 if (IS_ERR(asd)) {
eae2aed1eab9bf Steve Longerbeam 2018-09-29 950 /* not an error if asd already exists */
016413d967061f Sakari Ailus 2019-04-04 951 if (PTR_ERR(asd) == -EEXIST)
eae2aed1eab9bf Steve Longerbeam 2018-09-29 952 continue;
d84285390f0722 Sakari Ailus 2017-06-20 953
016413d967061f Sakari Ailus 2019-04-04 954 return PTR_ERR(asd);
d84285390f0722 Sakari Ailus 2017-06-20 955 }
d84285390f0722 Sakari Ailus 2017-06-20 956 }
d84285390f0722 Sakari Ailus 2017-06-20 957
d84285390f0722 Sakari Ailus 2017-06-20 958 return 0;
d84285390f0722 Sakari Ailus 2017-06-20 959 }
d84285390f0722 Sakari Ailus 2017-06-20 960
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months
Re: [PATCH 1/1] v4l: async: Fix kerneldoc documentation for async functions
by kernel test robot
Hi Sakari,
I love your patch! Perhaps something to improve:
[auto build test WARNING on linuxtv-media/master]
[also build test WARNING on next-20210212]
[cannot apply to v5.11]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Sakari-Ailus/v4l-async-Fix-kerne...
base: git://linuxtv.org/media_tree.git master
config: sparc-allyesconfig (attached as .config)
compiler: sparc64-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/0day-ci/linux/commit/8e8c47cba531c1706847f07a4af5cd19a...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Sakari-Ailus/v4l-async-Fix-kerneldoc-documentation-for-async-functions/20210215-204146
git checkout 8e8c47cba531c1706847f07a4af5cd19aa33f351
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from drivers/media/platform/ti-vpe/cal.c:24:
drivers/media/platform/ti-vpe/cal.c: In function 'cal_async_notifier_register':
include/media/v4l2-async.h:179:4: error: '__type' undeclared (first use in this function); did you mean '_ctype'?
179 | ((__type *)__v4l2_async_notifier_add_fwnode_subdev(notifier, fwnode, \
| ^~~~~~
drivers/media/platform/ti-vpe/cal.c:694:10: note: in expansion of macro 'v4l2_async_notifier_add_fwnode_subdev'
694 | casd = v4l2_async_notifier_add_fwnode_subdev(&cal->notifier,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/media/v4l2-async.h:179:4: note: each undeclared identifier is reported only once for each function it appears in
179 | ((__type *)__v4l2_async_notifier_add_fwnode_subdev(notifier, fwnode, \
| ^~~~~~
drivers/media/platform/ti-vpe/cal.c:694:10: note: in expansion of macro 'v4l2_async_notifier_add_fwnode_subdev'
694 | casd = v4l2_async_notifier_add_fwnode_subdev(&cal->notifier,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/media/v4l2-async.h:179:12: error: expected expression before ')' token
179 | ((__type *)__v4l2_async_notifier_add_fwnode_subdev(notifier, fwnode, \
| ^
drivers/media/platform/ti-vpe/cal.c:694:10: note: in expansion of macro 'v4l2_async_notifier_add_fwnode_subdev'
694 | casd = v4l2_async_notifier_add_fwnode_subdev(&cal->notifier,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/media/platform/ti-vpe/cal.c:688:25: warning: variable 'fwnode' set but not used [-Wunused-but-set-variable]
688 | struct fwnode_handle *fwnode;
| ^~~~~~
vim +/fwnode +688 drivers/media/platform/ti-vpe/cal.c
b6ee3f0dcf43dc Laurent Pinchart 2017-08-30 676
a539a0536f6e22 Laurent Pinchart 2020-07-06 677 static int cal_async_notifier_register(struct cal_dev *cal)
343e89a792a571 Benoit Parrot 2016-01-06 678 {
a539a0536f6e22 Laurent Pinchart 2020-07-06 679 unsigned int i;
a539a0536f6e22 Laurent Pinchart 2020-07-06 680 int ret;
a539a0536f6e22 Laurent Pinchart 2020-07-06 681
a539a0536f6e22 Laurent Pinchart 2020-07-06 682 v4l2_async_notifier_init(&cal->notifier);
a539a0536f6e22 Laurent Pinchart 2020-07-06 683 cal->notifier.ops = &cal_async_notifier_ops;
a539a0536f6e22 Laurent Pinchart 2020-07-06 684
71c1f16ddd528d Laurent Pinchart 2020-12-07 685 for (i = 0; i < cal->data->num_csi2_phy; ++i) {
539e7c5d7c0281 Laurent Pinchart 2020-07-06 686 struct cal_camerarx *phy = cal->phy[i];
8fcb7576ad197b Laurent Pinchart 2020-07-06 687 struct cal_v4l2_async_subdev *casd;
f5ddf19eca3328 Laurent Pinchart 2020-07-06 @688 struct fwnode_handle *fwnode;
343e89a792a571 Benoit Parrot 2016-01-06 689
71c1f16ddd528d Laurent Pinchart 2020-12-07 690 if (!phy->sensor_node)
a539a0536f6e22 Laurent Pinchart 2020-07-06 691 continue;
d079f94c90469f Steve Longerbeam 2018-09-29 692
539e7c5d7c0281 Laurent Pinchart 2020-07-06 693 fwnode = of_fwnode_handle(phy->sensor_node);
b01edcbd409cf7 Laurent Pinchart 2021-01-18 694 casd = v4l2_async_notifier_add_fwnode_subdev(&cal->notifier,
a539a0536f6e22 Laurent Pinchart 2020-07-06 695 fwnode,
b01edcbd409cf7 Laurent Pinchart 2021-01-18 696 struct cal_v4l2_async_subdev);
b01edcbd409cf7 Laurent Pinchart 2021-01-18 697 if (IS_ERR(casd)) {
539e7c5d7c0281 Laurent Pinchart 2020-07-06 698 phy_err(phy, "Failed to add subdev to notifier\n");
b01edcbd409cf7 Laurent Pinchart 2021-01-18 699 ret = PTR_ERR(casd);
a539a0536f6e22 Laurent Pinchart 2020-07-06 700 goto error;
d079f94c90469f Steve Longerbeam 2018-09-29 701 }
d079f94c90469f Steve Longerbeam 2018-09-29 702
539e7c5d7c0281 Laurent Pinchart 2020-07-06 703 casd->phy = phy;
a539a0536f6e22 Laurent Pinchart 2020-07-06 704 }
8fcb7576ad197b Laurent Pinchart 2020-07-06 705
a539a0536f6e22 Laurent Pinchart 2020-07-06 706 ret = v4l2_async_notifier_register(&cal->v4l2_dev, &cal->notifier);
343e89a792a571 Benoit Parrot 2016-01-06 707 if (ret) {
a539a0536f6e22 Laurent Pinchart 2020-07-06 708 cal_err(cal, "Error registering async notifier\n");
a539a0536f6e22 Laurent Pinchart 2020-07-06 709 goto error;
343e89a792a571 Benoit Parrot 2016-01-06 710 }
343e89a792a571 Benoit Parrot 2016-01-06 711
f5ddf19eca3328 Laurent Pinchart 2020-07-06 712 return 0;
a539a0536f6e22 Laurent Pinchart 2020-07-06 713
a539a0536f6e22 Laurent Pinchart 2020-07-06 714 error:
a539a0536f6e22 Laurent Pinchart 2020-07-06 715 v4l2_async_notifier_cleanup(&cal->notifier);
a539a0536f6e22 Laurent Pinchart 2020-07-06 716 return ret;
a539a0536f6e22 Laurent Pinchart 2020-07-06 717 }
a539a0536f6e22 Laurent Pinchart 2020-07-06 718
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 7 months