lkml.org 
[lkml]   [2022]   [Jul]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjecttimestamping.c:328:56: warning: excess elements in struct initializer
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

\
 
 \ /
  Last update: 2022-07-19 00:57    [W:0.026 / U:0.488 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site