mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* cmsg_sender.c:149:36: warning: excess elements in struct initializer
@ 2022-07-19 10:39 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-07-19 10:39 UTC (permalink / raw)
  To: Jakub Kicinski; +Cc: kbuild-all, linux-kernel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   ca85855bdcae8f84f1512e88b4c75009ea17ea2f
commit: 4d397424a5e0e130d5e8d0023776f0aa2e791f51 selftests: net: cmsg_sender: support setting SO_TXTIME
date:   5 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 >>):

   cmsg_sender.c: In function 'cs_write_cmsg':
   cmsg_sender.c:148:24: error: variable 'so_txtime' has initializer but incomplete type
     148 |                 struct sock_txtime so_txtime = {
         |                        ^~~~~~~~~~~
   cmsg_sender.c:149:26: error: 'struct sock_txtime' has no member named 'clockid'
     149 |                         .clockid = CLOCK_MONOTONIC,
         |                          ^~~~~~~
>> cmsg_sender.c:149:36: warning: excess elements in struct initializer
     149 |                         .clockid = CLOCK_MONOTONIC,
         |                                    ^~~~~~~~~~~~~~~
   cmsg_sender.c:149:36: note: (near initialization for 'so_txtime')
   cmsg_sender.c:148:36: error: storage size of 'so_txtime' isn't known
     148 |                 struct sock_txtime so_txtime = {
         |                                    ^~~~~~~~~
   cmsg_sender.c:153:48: error: 'SO_TXTIME' undeclared (first use in this function)
     153 |                 if (setsockopt(fd, SOL_SOCKET, SO_TXTIME,
         |                                                ^~~~~~~~~
   cmsg_sender.c:153:48: note: each undeclared identifier is reported only once for each function it appears in
   cmsg_sender.c:167:35: error: 'SCM_TXTIME' undeclared (first use in this function)
     167 |                 cmsg->cmsg_type = SCM_TXTIME;
         |                                   ^~~~~~~~~~
>> cmsg_sender.c:148:36: warning: unused variable 'so_txtime' [-Wunused-variable]
     148 |                 struct sock_txtime so_txtime = {
         |                                    ^~~~~~~~~

-- 
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 10:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-19 10:39 cmsg_sender.c:149:36: 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®