lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Tue, 19 Jul 2022 18:39:02 +0800
From:   kernel test robot <lkp@...el.com>
To:     Jakub Kicinski <kuba@...nel.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: cmsg_sender.c:149:36: warning: excess elements in struct initializer

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@...el.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ