mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* timestamping.c:328:56: warning: excess elements in struct initializer
@ 2022-07-18 22:56 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-07-18 22:56 UTC (permalink / raw)
  To: Yangbo Lu; +Cc: kbuild-all, linux-kernel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   80e19f34c2887a8881084b7bb7480e9544d56b91
commit: 2214d7032479e50ff1fa7276e6efe1df08173fbf selftests/net: timestamping: support binding PHC
date:   1 year, 1 month 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 >>):

   timestamping.c: In function 'main':
   timestamping.c:328:16: error: variable 'so_timestamping_get' has initializer but incomplete type
     328 |         struct so_timestamping so_timestamping_get = { 0, -1 };
         |                ^~~~~~~~~~~~~~~
>> timestamping.c:328:56: warning: excess elements in struct initializer
     328 |         struct so_timestamping so_timestamping_get = { 0, -1 };
         |                                                        ^
   timestamping.c:328:56: note: (near initialization for 'so_timestamping_get')
   timestamping.c:328:59: warning: excess elements in struct initializer
     328 |         struct so_timestamping so_timestamping_get = { 0, -1 };
         |                                                           ^
   timestamping.c:328:59: note: (near initialization for 'so_timestamping_get')
   timestamping.c:328:32: error: storage size of 'so_timestamping_get' isn't known
     328 |         struct so_timestamping so_timestamping_get = { 0, -1 };
         |                                ^~~~~~~~~~~~~~~~~~~
   timestamping.c:329:16: error: variable 'so_timestamping' has initializer but incomplete type
     329 |         struct so_timestamping so_timestamping = { 0, -1 };
         |                ^~~~~~~~~~~~~~~
   timestamping.c:329:52: warning: excess elements in struct initializer
     329 |         struct so_timestamping so_timestamping = { 0, -1 };
         |                                                    ^
   timestamping.c:329:52: note: (near initialization for 'so_timestamping')
   timestamping.c:329:55: warning: excess elements in struct initializer
     329 |         struct so_timestamping so_timestamping = { 0, -1 };
         |                                                       ^
   timestamping.c:329:55: note: (near initialization for 'so_timestamping')
   timestamping.c:329:32: error: storage size of 'so_timestamping' isn't known
     329 |         struct so_timestamping so_timestamping = { 0, -1 };
         |                                ^~~~~~~~~~~~~~~
   timestamping.c:378:50: error: 'SOF_TIMESTAMPING_BIND_PHC' undeclared (first use in this function); did you mean 'SOF_TIMESTAMPING_TX_ACK'?
     378 |                         so_timestamping.flags |= SOF_TIMESTAMPING_BIND_PHC;
         |                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~
         |                                                  SOF_TIMESTAMPING_TX_ACK
   timestamping.c:378:50: note: each undeclared identifier is reported only once for each function it appears in
>> timestamping.c:329:32: warning: unused variable 'so_timestamping' [-Wunused-variable]
     329 |         struct so_timestamping so_timestamping = { 0, -1 };
         |                                ^~~~~~~~~~~~~~~
>> timestamping.c:328:32: warning: unused variable 'so_timestamping_get' [-Wunused-variable]
     328 |         struct so_timestamping so_timestamping_get = { 0, -1 };
         |                                ^~~~~~~~~~~~~~~~~~~

-- 
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-18 22:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-18 22:56 timestamping.c:328:56: 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

all inboxes | Powered by JetHome®