* toeplitz.c:335:23: warning: excess elements in struct initializer
@ 2022-07-19 0:07 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-07-19 0:07 UTC (permalink / raw)
To: Coco Li; +Cc: kbuild-all, linux-kernel, Willem de Bruijn
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 80e19f34c2887a8881084b7bb7480e9544d56b91
commit: 5ebfb4cc3048380b43506ffc71b9cf8b83128989 selftests/net: toeplitz test
date: 12 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 >>):
toeplitz.c: In function 'create_ring':
toeplitz.c:334:16: error: variable 'args' has initializer but incomplete type
334 | struct fanout_args args = {
| ^~~~~~~~~~~
toeplitz.c:335:18: error: 'struct fanout_args' has no member named 'id'
335 | .id = 1,
| ^~
>> toeplitz.c:335:23: warning: excess elements in struct initializer
335 | .id = 1,
| ^
toeplitz.c:335:23: note: (near initialization for 'args')
toeplitz.c:336:18: error: 'struct fanout_args' has no member named 'type_flags'
336 | .type_flags = PACKET_FANOUT_CPU,
| ^~~~~~~~~~
In file included from toeplitz.c:33:
>> ../../../../usr/include/linux/if_packet.h:63:41: warning: excess elements in struct initializer
63 | #define PACKET_FANOUT_CPU 2
| ^
toeplitz.c:336:31: note: in expansion of macro 'PACKET_FANOUT_CPU'
336 | .type_flags = PACKET_FANOUT_CPU,
| ^~~~~~~~~~~~~~~~~
../../../../usr/include/linux/if_packet.h:63:41: note: (near initialization for 'args')
63 | #define PACKET_FANOUT_CPU 2
| ^
toeplitz.c:336:31: note: in expansion of macro 'PACKET_FANOUT_CPU'
336 | .type_flags = PACKET_FANOUT_CPU,
| ^~~~~~~~~~~~~~~~~
toeplitz.c:337:18: error: 'struct fanout_args' has no member named 'max_num_members'
337 | .max_num_members = RSS_MAX_CPUS
| ^~~~~~~~~~~~~~~
toeplitz.c:64:22: warning: excess elements in struct initializer
64 | #define RSS_MAX_CPUS (1 << 16) /* real constraint is PACKET_FANOUT_MAX */
| ^
toeplitz.c:337:36: note: in expansion of macro 'RSS_MAX_CPUS'
337 | .max_num_members = RSS_MAX_CPUS
| ^~~~~~~~~~~~
toeplitz.c:64:22: note: (near initialization for 'args')
64 | #define RSS_MAX_CPUS (1 << 16) /* real constraint is PACKET_FANOUT_MAX */
| ^
toeplitz.c:337:36: note: in expansion of macro 'RSS_MAX_CPUS'
337 | .max_num_members = RSS_MAX_CPUS
| ^~~~~~~~~~~~
toeplitz.c:334:28: error: storage size of 'args' isn't known
334 | struct fanout_args args = {
| ^~~~
>> toeplitz.c:334:28: warning: unused variable 'args' [-Wunused-variable]
--
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 0:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-19 0:07 toeplitz.c:335:23: warning: excess elements in struct initializer 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