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]
Message-ID: <202110270305.os0l49ia-lkp@intel.com>
Date:   Wed, 27 Oct 2021 03:48:14 +0800
From:   kernel test robot <lkp@...el.com>
To:     Petr Machata <me@...chata.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [jpirko-mlxsw:petrm_soft_counters 1/4]
 drivers/net/netdevsim/netdevsim.h:105:22: error: field 'buffer' has
 incomplete type

tree:   https://github.com/jpirko/linux_mlxsw petrm_soft_counters
head:   a8a72b09197b26075b17e1722bf534d141e26034
commit: 33151ced43f15dd778ccb057cc752eedee86b9ec [1/4] netdevsim DCB
config: x86_64-kexec (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/jpirko/linux_mlxsw/commit/33151ced43f15dd778ccb057cc752eedee86b9ec
        git remote add jpirko-mlxsw https://github.com/jpirko/linux_mlxsw
        git fetch --no-tags jpirko-mlxsw petrm_soft_counters
        git checkout 33151ced43f15dd778ccb057cc752eedee86b9ec
        # save the attached .config to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/net/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All error/warnings (new ones prefixed by >>):

   In file included from drivers/net/netdevsim/dev.c:36:
>> drivers/net/netdevsim/netdevsim.h:105:22: error: field 'buffer' has incomplete type
     105 |  struct dcbnl_buffer buffer;
         |                      ^~~~~~
>> drivers/net/netdevsim/netdevsim.h:106:18: error: field 'ets' has incomplete type
     106 |  struct ieee_ets ets;
         |                  ^~~
>> drivers/net/netdevsim/netdevsim.h:107:22: error: field 'maxrate' has incomplete type
     107 |  struct ieee_maxrate maxrate;
         |                      ^~~~~~~
>> drivers/net/netdevsim/netdevsim.h:108:18: error: field 'pfc' has incomplete type
     108 |  struct ieee_pfc pfc;
         |                  ^~~
--
   In file included from drivers/net/netdevsim/netdev.c:27:
>> drivers/net/netdevsim/netdevsim.h:105:22: error: field 'buffer' has incomplete type
     105 |  struct dcbnl_buffer buffer;
         |                      ^~~~~~
>> drivers/net/netdevsim/netdevsim.h:106:18: error: field 'ets' has incomplete type
     106 |  struct ieee_ets ets;
         |                  ^~~
>> drivers/net/netdevsim/netdevsim.h:107:22: error: field 'maxrate' has incomplete type
     107 |  struct ieee_maxrate maxrate;
         |                      ^~~~~~~
>> drivers/net/netdevsim/netdevsim.h:108:18: error: field 'pfc' has incomplete type
     108 |  struct ieee_pfc pfc;
         |                  ^~~
   drivers/net/netdevsim/netdev.c: In function 'nsim_dcb_dcbnl_buffer_update_total_size':
>> drivers/net/netdevsim/netdev.c:286:18: error: 'DCBX_MAX_BUFFERS' undeclared (first use in this function)
     286 |  for (i = 0; i < DCBX_MAX_BUFFERS; i++)
         |                  ^~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:286:18: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/net/netdevsim/netdev.c:287:20: error: dereferencing pointer to incomplete type 'struct dcbnl_buffer'
     287 |   total_size += buf->buffer_size[i];
         |                    ^~
   drivers/net/netdevsim/netdev.c: At top level:
   drivers/net/netdevsim/netdev.c:291:5: warning: no previous prototype for 'nsim_dcb_dcbnl_getbuffer' [-Wmissing-prototypes]
     291 | int nsim_dcb_dcbnl_getbuffer(struct net_device *dev, struct dcbnl_buffer *buf)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:302:5: warning: no previous prototype for 'nsim_dcb_dcbnl_setbuffer' [-Wmissing-prototypes]
     302 | int nsim_dcb_dcbnl_setbuffer(struct net_device *dev, struct dcbnl_buffer *buf)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:311:5: warning: no previous prototype for 'nsim_dcb_ieee_getets' [-Wmissing-prototypes]
     311 | int nsim_dcb_ieee_getets(struct net_device *dev, struct ieee_ets *ets)
         |     ^~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c: In function 'nsim_dcb_ieee_getets':
>> drivers/net/netdevsim/netdev.c:316:2: error: dereferencing pointer to incomplete type 'struct ieee_ets'
     316 |  *ets = ns->ets;
         |  ^~~~
   drivers/net/netdevsim/netdev.c: At top level:
   drivers/net/netdevsim/netdev.c:320:5: warning: no previous prototype for 'nsim_dcb_ieee_setets' [-Wmissing-prototypes]
     320 | int nsim_dcb_ieee_setets(struct net_device *dev, struct ieee_ets *ets)
         |     ^~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:329:5: warning: no previous prototype for 'nsim_dcb_ieee_getmaxrate' [-Wmissing-prototypes]
     329 | int nsim_dcb_ieee_getmaxrate(struct net_device *dev, struct ieee_maxrate *maxrate)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c: In function 'nsim_dcb_ieee_getmaxrate':
>> drivers/net/netdevsim/netdev.c:334:2: error: dereferencing pointer to incomplete type 'struct ieee_maxrate'
     334 |  *maxrate = ns->maxrate;
         |  ^~~~~~~~
   drivers/net/netdevsim/netdev.c: At top level:
   drivers/net/netdevsim/netdev.c:338:5: warning: no previous prototype for 'nsim_dcb_ieee_setmaxrate' [-Wmissing-prototypes]
     338 | int nsim_dcb_ieee_setmaxrate(struct net_device *dev, struct ieee_maxrate *maxrate)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:347:5: warning: no previous prototype for 'nsim_dcb_ieee_getpfc' [-Wmissing-prototypes]
     347 | int nsim_dcb_ieee_getpfc(struct net_device *dev, struct ieee_pfc *pfc)
         |     ^~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c: In function 'nsim_dcb_ieee_getpfc':
>> drivers/net/netdevsim/netdev.c:355:18: error: 'IEEE_8021QAZ_MAX_TCS' undeclared (first use in this function)
     355 |  for (i = 1; i < IEEE_8021QAZ_MAX_TCS; i++)
         |                  ^~~~~~~~~~~~~~~~~~~~
>> drivers/net/netdevsim/netdev.c:362:2: error: dereferencing pointer to incomplete type 'struct ieee_pfc'
     362 |  *pfc = ns->pfc;
         |  ^~~~
   drivers/net/netdevsim/netdev.c: At top level:
   drivers/net/netdevsim/netdev.c:366:5: warning: no previous prototype for 'nsim_dcb_ieee_setpfc' [-Wmissing-prototypes]
     366 | int nsim_dcb_ieee_setpfc(struct net_device *dev, struct ieee_pfc *pfc)
         |     ^~~~~~~~~~~~~~~~~~~~
>> drivers/net/netdevsim/netdev.c:379:57: warning: 'struct ieee_qcn' declared inside parameter list will not be visible outside of this definition or declaration
     379 | int nsim_dcb_ieee_getqcn(struct net_device *dev, struct ieee_qcn *qcn)
         |                                                         ^~~~~~~~
   drivers/net/netdevsim/netdev.c:379:5: warning: no previous prototype for 'nsim_dcb_ieee_getqcn' [-Wmissing-prototypes]
     379 | int nsim_dcb_ieee_getqcn(struct net_device *dev, struct ieee_qcn *qcn)
         |     ^~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:385:57: warning: 'struct ieee_qcn' declared inside parameter list will not be visible outside of this definition or declaration
     385 | int nsim_dcb_ieee_setqcn(struct net_device *dev, struct ieee_qcn *qcn)
         |                                                         ^~~~~~~~
   drivers/net/netdevsim/netdev.c:385:5: warning: no previous prototype for 'nsim_dcb_ieee_setqcn' [-Wmissing-prototypes]
     385 | int nsim_dcb_ieee_setqcn(struct net_device *dev, struct ieee_qcn *qcn)
         |     ^~~~~~~~~~~~~~~~~~~~
>> drivers/net/netdevsim/netdev.c:391:62: warning: 'struct ieee_qcn_stats' declared inside parameter list will not be visible outside of this definition or declaration
     391 | int nsim_dcb_ieee_getqcnstats(struct net_device *dev, struct ieee_qcn_stats *qcn_stats)
         |                                                              ^~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:391:5: warning: no previous prototype for 'nsim_dcb_ieee_getqcnstats' [-Wmissing-prototypes]
     391 | int nsim_dcb_ieee_getqcnstats(struct net_device *dev, struct ieee_qcn_stats *qcn_stats)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:397:5: warning: no previous prototype for 'nsim_dcb_ieee_peer_getets' [-Wmissing-prototypes]
     397 | int nsim_dcb_ieee_peer_getets(struct net_device *dev, struct ieee_ets *ets)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:403:5: warning: no previous prototype for 'nsim_dcb_ieee_peer_getpfc' [-Wmissing-prototypes]
     403 | int nsim_dcb_ieee_peer_getpfc(struct net_device *dev, struct ieee_pfc *pfc)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:409:4: warning: no previous prototype for 'nsim_dcb_getstate' [-Wmissing-prototypes]
     409 | u8 nsim_dcb_getstate(struct net_device *dev)
         |    ^~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:415:4: warning: no previous prototype for 'nsim_dcb_setstate' [-Wmissing-prototypes]
     415 | u8 nsim_dcb_setstate(struct net_device *dev, u8 enabled)
         |    ^~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:421:6: warning: no previous prototype for 'nsim_dcb_getpermhwaddr' [-Wmissing-prototypes]
     421 | void nsim_dcb_getpermhwaddr(struct net_device *dev, u8 *perm_addr)
         |      ^~~~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:426:6: warning: no previous prototype for 'nsim_dcb_setpgtccfgtx' [-Wmissing-prototypes]
     426 | void nsim_dcb_setpgtccfgtx(struct net_device *dev, int prio, u8 prio_type,
         |      ^~~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:432:6: warning: no previous prototype for 'nsim_dcb_setpgbwgcfgtx' [-Wmissing-prototypes]
     432 | void nsim_dcb_setpgbwgcfgtx(struct net_device *dev, int pgid, u8 bw_pct)
         |      ^~~~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:437:6: warning: no previous prototype for 'nsim_dcb_setpgtccfgrx' [-Wmissing-prototypes]
     437 | void nsim_dcb_setpgtccfgrx(struct net_device *dev, int prio, u8 prio_type,
         |      ^~~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:443:6: warning: no previous prototype for 'nsim_dcb_setpgbwgcfgrx' [-Wmissing-prototypes]
     443 | void nsim_dcb_setpgbwgcfgrx(struct net_device *dev, int pgid, u8 bw_pct)
         |      ^~~~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:448:6: warning: no previous prototype for 'nsim_dcb_getpgtccfgtx' [-Wmissing-prototypes]
     448 | void nsim_dcb_getpgtccfgtx(struct net_device *dev, int tc, u8 *prio_type,
         |      ^~~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:454:6: warning: no previous prototype for 'nsim_dcb_getpgbwgcfgtx' [-Wmissing-prototypes]
     454 | void nsim_dcb_getpgbwgcfgtx(struct net_device *dev, int pgid, u8 *bw_pct)
         |      ^~~~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:459:6: warning: no previous prototype for 'nsim_dcb_getpgtccfgrx' [-Wmissing-prototypes]
     459 | void nsim_dcb_getpgtccfgrx(struct net_device *dev, int tc, u8 *prio,
         |      ^~~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:465:6: warning: no previous prototype for 'nsim_dcb_getpgbwgcfgrx' [-Wmissing-prototypes]
     465 | void nsim_dcb_getpgbwgcfgrx(struct net_device *dev, int pg_id, u8 *bw_pct)
         |      ^~~~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:470:6: warning: no previous prototype for 'nsim_dcb_setpfccfg' [-Wmissing-prototypes]
     470 | void nsim_dcb_setpfccfg(struct net_device *dev, int prio, u8 enabled)
         |      ^~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:475:6: warning: no previous prototype for 'nsim_dcb_getpfccfg' [-Wmissing-prototypes]
     475 | void nsim_dcb_getpfccfg(struct net_device *dev, int prio, u8 *enabled)
         |      ^~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:480:4: warning: no previous prototype for 'nsim_dcb_setall' [-Wmissing-prototypes]
     480 | u8 nsim_dcb_setall(struct net_device *dev)
         |    ^~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:486:4: warning: no previous prototype for 'nsim_dcb_getcap' [-Wmissing-prototypes]
     486 | u8 nsim_dcb_getcap(struct net_device *dev, int capid, u8 *cap)
         |    ^~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:492:5: warning: no previous prototype for 'nsim_dcb_getnumtcs' [-Wmissing-prototypes]
     492 | int nsim_dcb_getnumtcs(struct net_device *dev, int tcs_id, u8 *num)
         |     ^~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:498:5: warning: no previous prototype for 'nsim_dcb_setnumtcs' [-Wmissing-prototypes]
     498 | int nsim_dcb_setnumtcs(struct net_device *dev, int tcs_id, u8 num)
         |     ^~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:504:4: warning: no previous prototype for 'nsim_dcb_getpfcstate' [-Wmissing-prototypes]
     504 | u8 nsim_dcb_getpfcstate(struct net_device *dev)
         |    ^~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:510:6: warning: no previous prototype for 'nsim_dcb_setpfcstate' [-Wmissing-prototypes]
     510 | void nsim_dcb_setpfcstate(struct net_device *dev, u8 enabled)
         |      ^~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:515:5: warning: no previous prototype for 'nsim_dcb_setapp' [-Wmissing-prototypes]
     515 | int nsim_dcb_setapp(struct net_device *dev, u8 sel, u16 pid, u8 prio)
         |     ^~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:521:5: warning: no previous prototype for 'nsim_dcb_getapp' [-Wmissing-prototypes]
     521 | int nsim_dcb_getapp(struct net_device *dev, u8 sel, u16 pid)
         |     ^~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:527:4: warning: no previous prototype for 'nsim_dcb_getfeatcfg' [-Wmissing-prototypes]
     527 | u8 nsim_dcb_getfeatcfg(struct net_device *dev, int feat_id, u8 *flags)
         |    ^~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:533:4: warning: no previous prototype for 'nsim_dcb_setfeatcfg' [-Wmissing-prototypes]
     533 | u8 nsim_dcb_setfeatcfg(struct net_device *dev, int feat_id, u8 flags)
         |    ^~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:539:4: warning: no previous prototype for 'nsim_dcb_getdcbx' [-Wmissing-prototypes]
     539 | u8 nsim_dcb_getdcbx(struct net_device *dev)
         |    ^~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:546:4: warning: no previous prototype for 'nsim_dcb_setdcbx' [-Wmissing-prototypes]
     546 | u8 nsim_dcb_setdcbx(struct net_device *dev, u8 mode)
         |    ^~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:554:61: warning: 'struct dcb_peer_app_info' declared inside parameter list will not be visible outside of this definition or declaration
     554 | int nsim_dcb_peer_getappinfo(struct net_device *dev, struct dcb_peer_app_info *info, u16 *count)
         |                                                             ^~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:554:5: warning: no previous prototype for 'nsim_dcb_peer_getappinfo' [-Wmissing-prototypes]
     554 | int nsim_dcb_peer_getappinfo(struct net_device *dev, struct dcb_peer_app_info *info, u16 *count)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:560:62: warning: 'struct dcb_app' declared inside parameter list will not be visible outside of this definition or declaration
     560 | int nsim_dcb_peer_getapptable(struct net_device *dev, struct dcb_app *table)
         |                                                              ^~~~~~~
   drivers/net/netdevsim/netdev.c:560:5: warning: no previous prototype for 'nsim_dcb_peer_getapptable' [-Wmissing-prototypes]
     560 | int nsim_dcb_peer_getapptable(struct net_device *dev, struct dcb_app *table)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/netdevsim/netdev.c:566:60: warning: 'struct cee_pg' declared inside parameter list will not be visible outside of this definition or declaration
     566 | int nsim_dcb_cee_peer_getpg(struct net_device *dev, struct cee_pg *pg)
         |                                                            ^~~~~~
   drivers/net/netdevsim/netdev.c:566:5: warning: no previous prototype for 'nsim_dcb_cee_peer_getpg' [-Wmissing-prototypes]
     566 | int nsim_dcb_cee_peer_getpg(struct net_device *dev, struct cee_pg *pg)
         |     ^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/netdevsim/netdev.c:572:61: warning: 'struct cee_pfc' declared inside parameter list will not be visible outside of this definition or declaration
     572 | int nsim_dcb_cee_peer_getpfc(struct net_device *dev, struct cee_pfc *pfc)
         |                                                             ^~~~~~~
   drivers/net/netdevsim/netdev.c:572:5: warning: no previous prototype for 'nsim_dcb_cee_peer_getpfc' [-Wmissing-prototypes]
     572 | int nsim_dcb_cee_peer_getpfc(struct net_device *dev, struct cee_pfc *pfc)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/net/netdevsim/netdev.c:578:21: error: variable 'nsim_dcbnl_ops' has initializer but incomplete type
     578 | static const struct dcbnl_rtnl_ops nsim_dcbnl_ops = {
         |                     ^~~~~~~~~~~~~~
>> drivers/net/netdevsim/netdev.c:579:3: error: 'const struct dcbnl_rtnl_ops' has no member named 'ieee_getets'
     579 |  .ieee_getets = nsim_dcb_ieee_getets,
         |   ^~~~~~~~~~~
>> drivers/net/netdevsim/netdev.c:579:17: warning: excess elements in struct initializer
     579 |  .ieee_getets = nsim_dcb_ieee_getets,
         |                 ^~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:579:17: note: (near initialization for 'nsim_dcbnl_ops')
>> drivers/net/netdevsim/netdev.c:580:3: error: 'const struct dcbnl_rtnl_ops' has no member named 'ieee_setets'
     580 |  .ieee_setets = nsim_dcb_ieee_setets,
         |   ^~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:580:17: warning: excess elements in struct initializer
     580 |  .ieee_setets = nsim_dcb_ieee_setets,
         |                 ^~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:580:17: note: (near initialization for 'nsim_dcbnl_ops')
>> drivers/net/netdevsim/netdev.c:581:3: error: 'const struct dcbnl_rtnl_ops' has no member named 'ieee_getmaxrate'
     581 |  .ieee_getmaxrate = nsim_dcb_ieee_getmaxrate,
         |   ^~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:581:21: warning: excess elements in struct initializer
     581 |  .ieee_getmaxrate = nsim_dcb_ieee_getmaxrate,
         |                     ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:581:21: note: (near initialization for 'nsim_dcbnl_ops')
>> drivers/net/netdevsim/netdev.c:582:3: error: 'const struct dcbnl_rtnl_ops' has no member named 'ieee_setmaxrate'
     582 |  .ieee_setmaxrate = nsim_dcb_ieee_setmaxrate,
         |   ^~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:582:21: warning: excess elements in struct initializer
     582 |  .ieee_setmaxrate = nsim_dcb_ieee_setmaxrate,
         |                     ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:582:21: note: (near initialization for 'nsim_dcbnl_ops')
   drivers/net/netdevsim/netdev.c:583:3: error: 'const struct dcbnl_rtnl_ops' has no member named 'ieee_getqcn'
     583 |  .ieee_getqcn = nsim_dcb_ieee_getqcn,
         |   ^~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:583:17: warning: excess elements in struct initializer
     583 |  .ieee_getqcn = nsim_dcb_ieee_getqcn,
         |                 ^~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:583:17: note: (near initialization for 'nsim_dcbnl_ops')
   drivers/net/netdevsim/netdev.c:584:3: error: 'const struct dcbnl_rtnl_ops' has no member named 'ieee_setqcn'
     584 |  .ieee_setqcn = nsim_dcb_ieee_setqcn,
         |   ^~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:584:17: warning: excess elements in struct initializer
     584 |  .ieee_setqcn = nsim_dcb_ieee_setqcn,
         |                 ^~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:584:17: note: (near initialization for 'nsim_dcbnl_ops')
   drivers/net/netdevsim/netdev.c:585:3: error: 'const struct dcbnl_rtnl_ops' has no member named 'ieee_getqcnstats'
     585 |  .ieee_getqcnstats = nsim_dcb_ieee_getqcnstats,
         |   ^~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:585:22: warning: excess elements in struct initializer
     585 |  .ieee_getqcnstats = nsim_dcb_ieee_getqcnstats,
         |                      ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:585:22: note: (near initialization for 'nsim_dcbnl_ops')
   drivers/net/netdevsim/netdev.c:586:3: error: 'const struct dcbnl_rtnl_ops' has no member named 'ieee_getpfc'
     586 |  .ieee_getpfc = nsim_dcb_ieee_getpfc,
         |   ^~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:586:17: warning: excess elements in struct initializer
     586 |  .ieee_getpfc = nsim_dcb_ieee_getpfc,
         |                 ^~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:586:17: note: (near initialization for 'nsim_dcbnl_ops')
   drivers/net/netdevsim/netdev.c:587:3: error: 'const struct dcbnl_rtnl_ops' has no member named 'ieee_setpfc'
     587 |  .ieee_setpfc = nsim_dcb_ieee_setpfc,
         |   ^~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:587:17: warning: excess elements in struct initializer
     587 |  .ieee_setpfc = nsim_dcb_ieee_setpfc,
         |                 ^~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:587:17: note: (near initialization for 'nsim_dcbnl_ops')
   drivers/net/netdevsim/netdev.c:588:3: error: 'const struct dcbnl_rtnl_ops' has no member named 'ieee_setapp'
     588 |  .ieee_setapp = dcb_ieee_setapp,
         |   ^~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:588:17: error: 'dcb_ieee_setapp' undeclared here (not in a function)
     588 |  .ieee_setapp = dcb_ieee_setapp,
         |                 ^~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:588:17: warning: excess elements in struct initializer
   drivers/net/netdevsim/netdev.c:588:17: note: (near initialization for 'nsim_dcbnl_ops')
   drivers/net/netdevsim/netdev.c:589:3: error: 'const struct dcbnl_rtnl_ops' has no member named 'ieee_delapp'
     589 |  .ieee_delapp = dcb_ieee_delapp,
         |   ^~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:589:17: error: 'dcb_ieee_delapp' undeclared here (not in a function)
     589 |  .ieee_delapp = dcb_ieee_delapp,
         |                 ^~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:589:17: warning: excess elements in struct initializer
   drivers/net/netdevsim/netdev.c:589:17: note: (near initialization for 'nsim_dcbnl_ops')
   drivers/net/netdevsim/netdev.c:590:3: error: 'const struct dcbnl_rtnl_ops' has no member named 'ieee_peer_getets'
     590 |  .ieee_peer_getets = nsim_dcb_ieee_peer_getets,
         |   ^~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:590:22: warning: excess elements in struct initializer
     590 |  .ieee_peer_getets = nsim_dcb_ieee_peer_getets,
         |                      ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:590:22: note: (near initialization for 'nsim_dcbnl_ops')
   drivers/net/netdevsim/netdev.c:591:3: error: 'const struct dcbnl_rtnl_ops' has no member named 'ieee_peer_getpfc'
     591 |  .ieee_peer_getpfc = nsim_dcb_ieee_peer_getpfc,
         |   ^~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:591:22: warning: excess elements in struct initializer
     591 |  .ieee_peer_getpfc = nsim_dcb_ieee_peer_getpfc,
         |                      ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:591:22: note: (near initialization for 'nsim_dcbnl_ops')
   drivers/net/netdevsim/netdev.c:593:3: error: 'const struct dcbnl_rtnl_ops' has no member named 'getstate'
     593 |  .getstate = nsim_dcb_getstate,
         |   ^~~~~~~~
   drivers/net/netdevsim/netdev.c:593:14: warning: excess elements in struct initializer
     593 |  .getstate = nsim_dcb_getstate,
         |              ^~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:593:14: note: (near initialization for 'nsim_dcbnl_ops')
   drivers/net/netdevsim/netdev.c:594:3: error: 'const struct dcbnl_rtnl_ops' has no member named 'setstate'
     594 |  .setstate = nsim_dcb_setstate,
         |   ^~~~~~~~
   drivers/net/netdevsim/netdev.c:594:14: warning: excess elements in struct initializer
     594 |  .setstate = nsim_dcb_setstate,
         |              ^~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:594:14: note: (near initialization for 'nsim_dcbnl_ops')
   drivers/net/netdevsim/netdev.c:595:3: error: 'const struct dcbnl_rtnl_ops' has no member named 'getpermhwaddr'
     595 |  .getpermhwaddr = nsim_dcb_getpermhwaddr,
         |   ^~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:595:19: warning: excess elements in struct initializer
     595 |  .getpermhwaddr = nsim_dcb_getpermhwaddr,
         |                   ^~~~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:595:19: note: (near initialization for 'nsim_dcbnl_ops')
   drivers/net/netdevsim/netdev.c:596:3: error: 'const struct dcbnl_rtnl_ops' has no member named 'setpgtccfgtx'
     596 |  .setpgtccfgtx = nsim_dcb_setpgtccfgtx,
         |   ^~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:596:18: warning: excess elements in struct initializer
     596 |  .setpgtccfgtx = nsim_dcb_setpgtccfgtx,
         |                  ^~~~~~~~~~~~~~~~~~~~~
   drivers/net/netdevsim/netdev.c:596:18: note: (near initialization for 'nsim_dcbnl_ops')
   drivers/net/netdevsim/netdev.c:597:3: error: 'const struct dcbnl_rtnl_ops' has no member named 'setpgbwgcfgtx'


vim +/buffer +105 drivers/net/netdevsim/netdevsim.h

    71	
    72	struct netdevsim {
    73		struct net_device *netdev;
    74		struct nsim_dev *nsim_dev;
    75		struct nsim_dev_port *nsim_dev_port;
    76	
    77		u64 tx_packets;
    78		u64 tx_bytes;
    79		struct u64_stats_sync syncp;
    80	
    81		struct nsim_bus_dev *nsim_bus_dev;
    82	
    83		struct bpf_prog	*bpf_offloaded;
    84		u32 bpf_offloaded_id;
    85	
    86		struct xdp_attachment_info xdp;
    87		struct xdp_attachment_info xdp_hw;
    88	
    89		bool bpf_tc_accept;
    90		bool bpf_tc_non_bound_accept;
    91		bool bpf_xdpdrv_accept;
    92		bool bpf_xdpoffload_accept;
    93	
    94		bool bpf_map_accept;
    95		struct nsim_ipsec ipsec;
    96		struct {
    97			u32 inject_error;
    98			u32 sleep;
    99			u32 __ports[2][NSIM_UDP_TUNNEL_N_PORTS];
   100			u32 (*ports)[NSIM_UDP_TUNNEL_N_PORTS];
   101			struct debugfs_u32_array dfs_ports[2];
   102		} udp_ports;
   103	
   104		struct nsim_ethtool ethtool;
 > 105		struct dcbnl_buffer buffer;
 > 106		struct ieee_ets ets;
 > 107		struct ieee_maxrate maxrate;
 > 108		struct ieee_pfc pfc;
   109		u8 dcbx;
   110	};
   111	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (29129 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ