lkml.org 
[lkml]   [2021]   [Oct]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v2] uapi: futex: Add a futex syscall
    Hi Alistair,

    Thank you for the patch! Yet something to improve:

    [auto build test ERROR on linux/master]
    [also build test ERROR on soc/for-next linus/master v5.15-rc6 next-20211021]
    [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/Alistair-Francis/uapi-futex-Add-a-futex-syscall/20211021-135527
    base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 2f111a6fd5b5297b4e92f53798ca086f7c7d33a4
    config: i386-randconfig-a004-20211021 (attached as .config)
    compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 3cea2505fd8d99a9ba0cb625aecfe28a47c4e3f8)
    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/6dcb960761dacb92295496cefad0a38e19d4c8ba
    git remote add linux-review https://github.com/0day-ci/linux
    git fetch --no-tags linux-review Alistair-Francis/uapi-futex-Add-a-futex-syscall/20211021-135527
    git checkout 6dcb960761dacb92295496cefad0a38e19d4c8ba
    # save the attached .config to linux build tree
    mkdir build_dir
    COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

    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 >>):

    In file included from <built-in>:1:
    ./usr/include/linux/futex_syscall.h:21:45: error: unknown type name 'u_int32_t'
    __kernel_futex_syscall_timeout(__volatile__ u_int32_t *uaddr, int op, u_int32_t val,
    ^
    ./usr/include/linux/futex_syscall.h:21:71: error: unknown type name 'u_int32_t'
    __kernel_futex_syscall_timeout(__volatile__ u_int32_t *uaddr, int op, u_int32_t val,
    ^
    ./usr/include/linux/futex_syscall.h:22:16: warning: declaration of 'struct timespec' will not be visible outside of this function [-Wvisibility]
    struct timespec *timeout, __volatile__ u_int32_t *uaddr2, int val3)
    ^
    ./usr/include/linux/futex_syscall.h:22:48: error: unknown type name 'u_int32_t'
    struct timespec *timeout, __volatile__ u_int32_t *uaddr2, int val3)
    ^
    >> ./usr/include/linux/futex_syscall.h:25:12: error: invalid application of 'sizeof' to an incomplete type 'struct timespec'
    if (sizeof(*timeout) != sizeof(struct __kernel_old_timespec)) {
    ^~~~~~~~~~
    ./usr/include/linux/futex_syscall.h:22:16: note: forward declaration of 'struct timespec'
    struct timespec *timeout, __volatile__ u_int32_t *uaddr2, int val3)
    ^
    >> ./usr/include/linux/futex_syscall.h:26:14: error: implicit declaration of function 'syscall' [-Werror,-Wimplicit-function-declaration]
    int ret = syscall(__NR_futex_time64, uaddr, op, val, timeout, uaddr2, val3);
    ^
    ./usr/include/linux/futex_syscall.h:34:12: error: invalid application of 'sizeof' to an incomplete type 'struct timespec'
    if (sizeof(*timeout) == sizeof(struct __kernel_old_timespec))
    ^~~~~~~~~~
    ./usr/include/linux/futex_syscall.h:22:16: note: forward declaration of 'struct timespec'
    struct timespec *timeout, __volatile__ u_int32_t *uaddr2, int val3)
    ^
    ./usr/include/linux/futex_syscall.h:35:10: error: implicit declaration of function 'syscall' [-Werror,-Wimplicit-function-declaration]
    return syscall(__NR_futex, uaddr, op, val, timeout, uaddr2, val3);
    ^
    >> ./usr/include/linux/futex_syscall.h:37:24: error: incomplete definition of type 'struct timespec'
    if (timeout && timeout->tv_sec == (long)timeout->tv_sec) {
    ~~~~~~~^
    ./usr/include/linux/futex_syscall.h:22:16: note: forward declaration of 'struct timespec'
    struct timespec *timeout, __volatile__ u_int32_t *uaddr2, int val3)
    ^
    ./usr/include/linux/futex_syscall.h:37:49: error: incomplete definition of type 'struct timespec'
    if (timeout && timeout->tv_sec == (long)timeout->tv_sec) {
    ~~~~~~~^
    ./usr/include/linux/futex_syscall.h:22:16: note: forward declaration of 'struct timespec'
    struct timespec *timeout, __volatile__ u_int32_t *uaddr2, int val3)
    ^
    ./usr/include/linux/futex_syscall.h:40:42: error: incomplete definition of type 'struct timespec'
    ts32.tv_sec = (__kernel_long_t) timeout->tv_sec;
    ~~~~~~~^
    ./usr/include/linux/futex_syscall.h:22:16: note: forward declaration of 'struct timespec'
    struct timespec *timeout, __volatile__ u_int32_t *uaddr2, int val3)
    ^
    ./usr/include/linux/futex_syscall.h:41:43: error: incomplete definition of type 'struct timespec'
    ts32.tv_nsec = (__kernel_long_t) timeout->tv_nsec;
    ~~~~~~~^
    ./usr/include/linux/futex_syscall.h:22:16: note: forward declaration of 'struct timespec'
    struct timespec *timeout, __volatile__ u_int32_t *uaddr2, int val3)
    ^
    >> ./usr/include/linux/futex_syscall.h:45:46: error: use of undeclared identifier 'NULL'
    return syscall(__NR_futex, uaddr, op, val, NULL, uaddr2, val3);
    ^
    ./usr/include/linux/futex_syscall.h:63:48: error: unknown type name 'u_int32_t'
    __kernel_futex_syscall_nr_requeue(__volatile__ u_int32_t *uaddr, int op, u_int32_t val,
    ^
    ./usr/include/linux/futex_syscall.h:63:74: error: unknown type name 'u_int32_t'
    __kernel_futex_syscall_nr_requeue(__volatile__ u_int32_t *uaddr, int op, u_int32_t val,
    ^
    ./usr/include/linux/futex_syscall.h:64:5: error: unknown type name 'u_int32_t'
    u_int32_t nr_requeue, __volatile__ u_int32_t *uaddr2, int val3)
    ^
    ./usr/include/linux/futex_syscall.h:64:40: error: unknown type name 'u_int32_t'
    u_int32_t nr_requeue, __volatile__ u_int32_t *uaddr2, int val3)
    ^
    ./usr/include/linux/futex_syscall.h:67:13: error: implicit declaration of function 'syscall' [-Werror,-Wimplicit-function-declaration]
    int ret = syscall(__NR_futex_time64, uaddr, op, val, nr_requeue, uaddr2, val3);
    ^
    1 warning and 17 errors generated.

    ---
    0-DAY CI Kernel Test Service, Intel Corporation
    https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
    [unhandled content-type:application/gzip]
    \
     
     \ /
      Last update: 2021-10-21 13:55    [W:4.460 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site