All of lore.kernel.org
 help / color / mirror / Atom feed
* [jpirko-mlxsw:petrm_8021qaz 18/18] drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c:1238:22: warning: excess elements in struct initializer
@ 2020-08-19 22:34 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-08-19 22:34 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3824 bytes --]

tree:   https://github.com/jpirko/linux_mlxsw petrm_8021qaz
head:   9695d59b85070316a2336212a26addeff39f3c56
commit: 9695d59b85070316a2336212a26addeff39f3c56 [18/18] more wip
config: riscv-allmodconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 9695d59b85070316a2336212a26addeff39f3c56
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv 

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

All warnings (new ones prefixed by >>):

   drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c:1238:3: error: 'const struct mlxsw_sp_port_type_speed_ops' has no member named 'ptys_max_speed'
    1238 |  .ptys_max_speed   = mlxsw_sp1_ptys_max_speed,
         |   ^~~~~~~~~~~~~~
   drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c:1238:22: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
    1238 |  .ptys_max_speed   = mlxsw_sp1_ptys_max_speed,
         |                      ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c:1238:22: note: (near initialization for 'mlxsw_sp1_port_type_speed_ops')
>> drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c:1238:22: warning: excess elements in struct initializer
   drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c:1238:22: note: (near initialization for 'mlxsw_sp1_port_type_speed_ops')
   drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c:1660:3: error: 'const struct mlxsw_sp_port_type_speed_ops' has no member named 'ptys_max_speed'
    1660 |  .ptys_max_speed   = mlxsw_sp2_ptys_max_speed,
         |   ^~~~~~~~~~~~~~
   drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c:1660:22: error: positional initialization of field in 'struct' declared with 'designated_init' attribute [-Werror=designated-init]
    1660 |  .ptys_max_speed   = mlxsw_sp2_ptys_max_speed,
         |                      ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c:1660:22: note: (near initialization for 'mlxsw_sp2_port_type_speed_ops')
   drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c:1660:22: warning: excess elements in struct initializer
   drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c:1660:22: note: (near initialization for 'mlxsw_sp2_port_type_speed_ops')
   cc1: some warnings being treated as errors

# https://github.com/jpirko/linux_mlxsw/commit/9695d59b85070316a2336212a26addeff39f3c56
git remote add jpirko-mlxsw https://github.com/jpirko/linux_mlxsw
git fetch --no-tags jpirko-mlxsw petrm_8021qaz
git checkout 9695d59b85070316a2336212a26addeff39f3c56
vim +1238 drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c

  1232	
  1233	const struct mlxsw_sp_port_type_speed_ops mlxsw_sp1_port_type_speed_ops = {
  1234		.from_ptys_supported_port	= mlxsw_sp1_from_ptys_supported_port,
  1235		.from_ptys_link			= mlxsw_sp1_from_ptys_link,
  1236		.from_ptys_speed		= mlxsw_sp1_from_ptys_speed,
  1237		.from_ptys_speed_duplex		= mlxsw_sp1_from_ptys_speed_duplex,
> 1238		.ptys_max_speed			= mlxsw_sp1_ptys_max_speed,
  1239		.to_ptys_advert_link		= mlxsw_sp1_to_ptys_advert_link,
  1240		.to_ptys_speed			= mlxsw_sp1_to_ptys_speed,
  1241		.reg_ptys_eth_pack		= mlxsw_sp1_reg_ptys_eth_pack,
  1242		.reg_ptys_eth_unpack		= mlxsw_sp1_reg_ptys_eth_unpack,
  1243	};
  1244	

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 65894 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-19 22:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-19 22:34 [jpirko-mlxsw:petrm_8021qaz 18/18] drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c:1238:22: warning: excess elements in struct initializer kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.