mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "André Almeida" <andrealmeid@collabora.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Peter Zijlstra <peterz@infradead.org>
Subject: futex_wait_wouldblock.c:47:34: warning: excess elements in struct initializer
Date: Tue, 19 Jul 2022 12:01:39 +0800	[thread overview]
Message-ID: <202207191106.c5cbgZFs-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   ca85855bdcae8f84f1512e88b4c75009ea17ea2f
commit: 9d57f7c79748920636f8293d2f01192d702fe390 selftests: futex: Test sys_futex_waitv() wouldblock
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@intel.com>

All warnings (new ones prefixed by >>):

   In file included from futex_wait_wouldblock.c:25:
   ../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_wouldblock.c: In function 'main':
   futex_wait_wouldblock.c:46:16: error: variable 'waitv' has initializer but incomplete type
      46 |         struct futex_waitv waitv = {
         |                ^~~~~~~~~~~
   futex_wait_wouldblock.c:47:26: error: 'struct futex_waitv' has no member named 'uaddr'
      47 |                         .uaddr = (uintptr_t)&f1,
         |                          ^~~~~
>> futex_wait_wouldblock.c:47:34: warning: excess elements in struct initializer
      47 |                         .uaddr = (uintptr_t)&f1,
         |                                  ^
   futex_wait_wouldblock.c:47:34: note: (near initialization for 'waitv')
   futex_wait_wouldblock.c:48:26: error: 'struct futex_waitv' has no member named 'val'
      48 |                         .val = f1+1,
         |                          ^~~
   futex_wait_wouldblock.c:48:32: warning: excess elements in struct initializer
      48 |                         .val = f1+1,
         |                                ^~
   futex_wait_wouldblock.c:48:32: note: (near initialization for 'waitv')
   futex_wait_wouldblock.c:49:26: error: 'struct futex_waitv' has no member named 'flags'
      49 |                         .flags = FUTEX_32,
         |                          ^~~~~
   futex_wait_wouldblock.c:49:34: error: 'FUTEX_32' undeclared (first use in this function); did you mean 'FUTEX_OP'?
      49 |                         .flags = FUTEX_32,
         |                                  ^~~~~~~~
         |                                  FUTEX_OP
   futex_wait_wouldblock.c:49:34: warning: excess elements in struct initializer
   futex_wait_wouldblock.c:49:34: note: (near initialization for 'waitv')
   futex_wait_wouldblock.c:50:26: error: 'struct futex_waitv' has no member named '__reserved'
      50 |                         .__reserved = 0
         |                          ^~~~~~~~~~
   futex_wait_wouldblock.c:50:39: warning: excess elements in struct initializer
      50 |                         .__reserved = 0
         |                                       ^
   futex_wait_wouldblock.c:50:39: note: (near initialization for 'waitv')
   futex_wait_wouldblock.c:46:28: error: storage size of 'waitv' isn't known
      46 |         struct futex_waitv waitv = {
         |                            ^~~~~
>> futex_wait_wouldblock.c:46:28: warning: unused variable 'waitv' [-Wunused-variable]

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

                 reply	other threads:[~2022-07-19  4:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202207191106.c5cbgZFs-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andrealmeid@collabora.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterz@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome