lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202207191049.VUHHxQmE-lkp@intel.com>
Date:   Tue, 19 Jul 2022 11:00:54 +0800
From:   kernel test robot <lkp@...el.com>
To:     André Almeida <andrealmeid@...labora.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Peter Zijlstra <peterz@...radead.org>
Subject: futex_wait_timeout.c:101:34: warning: excess elements in struct
 initializer

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   ca85855bdcae8f84f1512e88b4c75009ea17ea2f
commit: 02e56ccbaefcb1a78bd089a7b5beca754aca4db9 selftests: futex: Test sys_futex_waitv() timeout
date:   10 months ago
reproduce: make O=/tmp/kselftest -C tools/testing/selftests

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

   In file included from futex_wait_timeout.c:20:
   ../include/futex2test.h:18:47: warning: 'struct futex_waitv' declared inside parameter list will not be visible outside of this definition or declaration
      18 | static inline int futex_waitv(volatile struct futex_waitv *waiters, unsigned long nr_waiters,
         |                                               ^~~~~~~~~~~
   ../include/futex2test.h: In function 'futex_waitv':
   ../include/futex2test.h:21:24: error: '__NR_futex_waitv' undeclared (first use in this function); did you mean 'futex_waitv'?
      21 |         return syscall(__NR_futex_waitv, waiters, nr_waiters, flags, timo, clockid);
         |                        ^~~~~~~~~~~~~~~~
         |                        futex_waitv
   ../include/futex2test.h:21:24: note: each undeclared identifier is reported only once for each function it appears in
   futex_wait_timeout.c: In function 'main':
   futex_wait_timeout.c:100:16: error: variable 'waitv' has initializer but incomplete type
     100 |         struct futex_waitv waitv = {
         |                ^~~~~~~~~~~
   futex_wait_timeout.c:101:26: error: 'struct futex_waitv' has no member named 'uaddr'
     101 |                         .uaddr = (uintptr_t)&f1,
         |                          ^~~~~
>> futex_wait_timeout.c:101:34: warning: excess elements in struct initializer
     101 |                         .uaddr = (uintptr_t)&f1,
         |                                  ^
   futex_wait_timeout.c:101:34: note: (near initialization for 'waitv')
   futex_wait_timeout.c:102:26: error: 'struct futex_waitv' has no member named 'val'
     102 |                         .val = f1,
         |                          ^~~
   futex_wait_timeout.c:102:32: warning: excess elements in struct initializer
     102 |                         .val = f1,
         |                                ^~
   futex_wait_timeout.c:102:32: note: (near initialization for 'waitv')
   futex_wait_timeout.c:103:26: error: 'struct futex_waitv' has no member named 'flags'
     103 |                         .flags = FUTEX_32,
         |                          ^~~~~
   futex_wait_timeout.c:103:34: error: 'FUTEX_32' undeclared (first use in this function); did you mean 'FUTEX_OP'?
     103 |                         .flags = FUTEX_32,
         |                                  ^~~~~~~~
         |                                  FUTEX_OP
   futex_wait_timeout.c:103:34: warning: excess elements in struct initializer
   futex_wait_timeout.c:103:34: note: (near initialization for 'waitv')
   futex_wait_timeout.c:104:26: error: 'struct futex_waitv' has no member named '__reserved'
     104 |                         .__reserved = 0
         |                          ^~~~~~~~~~
   futex_wait_timeout.c:104:39: warning: excess elements in struct initializer
     104 |                         .__reserved = 0
         |                                       ^
   futex_wait_timeout.c:104:39: note: (near initialization for 'waitv')
   futex_wait_timeout.c:100:28: error: storage size of 'waitv' isn't known
     100 |         struct futex_waitv waitv = {
         |                            ^~~~~
>> futex_wait_timeout.c:100:28: warning: unused variable 'waitv' [-Wunused-variable]

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ