tree: https://github.com/jpirko/linux_mlxsw jiri_devel_devlink_locking head: b95a23dee00b6159c76aed1d843d2b7dd6177ffa commit: b4ff3030f4c5c475e1dd8f9f23e24bf856b80df6 [22/35] net: make drivers to use SET_NETDEV_DEVLINK_PORT to set devlink_port config: arm64-defconfig compiler: aarch64-linux-gcc (GCC) 12.1.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 # https://github.com/jpirko/linux_mlxsw/commit/b4ff3030f4c5c475e1dd8f9f23e24bf856b80df6 git remote add jpirko-mlxsw https://github.com/jpirko/linux_mlxsw git fetch --no-tags jpirko-mlxsw jiri_devel_devlink_locking git checkout b4ff3030f4c5c475e1dd8f9f23e24bf856b80df6 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/net/ethernet/mellanox/mlx5/core/en_rep.c: In function 'mlx5e_vport_uplink_rep_unload': >> drivers/net/ethernet/mellanox/mlx5/core/en_rep.c:1269:31: warning: variable 'dev' set but not used [-Wunused-but-set-variable] 1269 | struct mlx5_core_dev *dev; | ^~~ vim +/dev +1269 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c 7a9fb35e8c3a671 Roi Dayan 2020-09-16 1264 7a9fb35e8c3a671 Roi Dayan 2020-09-16 1265 static void 7a9fb35e8c3a671 Roi Dayan 2020-09-16 1266 mlx5e_vport_uplink_rep_unload(struct mlx5e_rep_priv *rpriv) 7a9fb35e8c3a671 Roi Dayan 2020-09-16 1267 { 7a9fb35e8c3a671 Roi Dayan 2020-09-16 1268 struct net_device *netdev = rpriv->netdev; 7a9fb35e8c3a671 Roi Dayan 2020-09-16 @1269 struct mlx5_core_dev *dev; 7a9fb35e8c3a671 Roi Dayan 2020-09-16 1270 struct mlx5e_priv *priv; 7a9fb35e8c3a671 Roi Dayan 2020-09-16 1271 7a9fb35e8c3a671 Roi Dayan 2020-09-16 1272 priv = netdev_priv(netdev); 7a9fb35e8c3a671 Roi Dayan 2020-09-16 1273 dev = priv->mdev; 7a9fb35e8c3a671 Roi Dayan 2020-09-16 1274 7a9fb35e8c3a671 Roi Dayan 2020-09-16 1275 mlx5e_netdev_attach_nic_profile(priv); 7a9fb35e8c3a671 Roi Dayan 2020-09-16 1276 } 7a9fb35e8c3a671 Roi Dayan 2020-09-16 1277 :::::: The code at line 1269 was first introduced by commit :::::: 7a9fb35e8c3a67145fca262c304de65cb2f83abf net/mlx5e: Do not reload ethernet ports when changing eswitch mode :::::: TO: Roi Dayan :::::: CC: Saeed Mahameed -- 0-DAY CI Kernel Test Service https://01.org/lkp