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(a)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/9695d59b85070316a2336212a26a...
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@lists.01.org