Index: sys/dev/mlx4/mlx4_core/mlx4_eq.c =================================================================== --- sys/dev/mlx4/mlx4_core/mlx4_eq.c +++ sys/dev/mlx4/mlx4_core/mlx4_eq.c @@ -501,7 +501,7 @@ int i; enum slave_port_gen_event gen_event; unsigned long flags; - struct mlx4_vport_state *s_info; + /* struct mlx4_vport_state *s_info; */ int eqe_size = dev->caps.eqe_size; while ((eqe = next_eqe_sw(eq, dev->caps.eqe_factor, eqe_size))) { @@ -611,7 +611,7 @@ continue; mlx4_dbg(dev, "%s: Sending MLX4_PORT_CHANGE_SUBTYPE_DOWN to slave: %d, port:%d\n", __func__, i, port); - s_info = &priv->mfunc.master.vf_oper[i].vport[port].state; + /* s_info = &priv->mfunc.master.vf_oper[i].vport[port].state; */ if (0 /*IFLA_VF_LINK_STATE_AUTO == s_info->link_state*/) { eqe->event.port_change.port = cpu_to_be32( @@ -652,7 +652,7 @@ continue; if (i == mlx4_master_func_num(dev)) continue; - s_info = &priv->mfunc.master.vf_oper[i].vport[port].state; + /* s_info = &priv->mfunc.master.vf_oper[i].vport[port].state; */ if (0 /*IFLA_VF_LINK_STATE_AUTO == s_info->link_state*/) { eqe->event.port_change.port = cpu_to_be32(