mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* ../include/futex2test.h:18:47: warning: 'struct futex_waitv' declared inside parameter list will not be visible outside of this definition or declaration
@ 2022-07-19  1:49 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-07-19  1:49 UTC (permalink / raw)
  To: André Almeida; +Cc: kbuild-all, linux-kernel, Peter Zijlstra

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   ca85855bdcae8f84f1512e88b4c75009ea17ea2f
commit: 5e59c1d1c78c9cdd8834f3242db4a76f617fa4ad selftests: futex: Add sys_futex_waitv() test
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_waitv.c:19:
>> ../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_waitv.c: At top level:
   futex_waitv.c:25:27: error: array type has incomplete element type 'struct futex_waitv'
      25 | static struct futex_waitv waitv[NR_FUTEXES];
         |                           ^~~~~
   futex_waitv.c: In function 'main':
   futex_waitv.c:91:34: error: 'FUTEX_32' undeclared (first use in this function); did you mean 'FUTEX_OP'?
      91 |                 waitv[i].flags = FUTEX_32 | FUTEX_PRIVATE_FLAG;
         |                                  ^~~~~~~~
         |                                  FUTEX_OP
   In file included from futex_waitv.c:19:
   ../include/futex2test.h: In function 'futex_waitv':
>> ../include/futex2test.h:22:1: warning: control reaches end of non-void function [-Wreturn-type]
      22 | }
         | ^
   At top level:
>> futex_waitv.c:25:27: warning: 'waitv' defined but not used [-Wunused-variable]
      25 | static struct futex_waitv waitv[NR_FUTEXES];
         |                           ^~~~~

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-19  1:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-19  1:49 ../include/futex2test.h:18:47: warning: 'struct futex_waitv' declared inside parameter list will not be visible outside of this definition or declaration kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®