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/20210215-233004 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/4911d0983833ed16da856a76c9ed94231a705243 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 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; \ ^~~~~~~~~~~~~~ :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; \ ^~~~~~~~~~~~~~ :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; \ ^~~~~~~~~~~~~~ :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; \ ^~~~~~~~~~~~~~ :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; \ ^~~~~~~~~~~~~~ :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; \ ^~~~~~~~~~~~~~ :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(a)lists.01.org