mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 11:37:06 +02:00
net/mlx5: fix multiple definitions of mlx5_lag_mpesw_init / mlx5_lag_mpesw_cleanup
static inline is needed in the header.
Fixes: 94db331778 ("net/mlx5: Support multiport eswitch mode")
Acked-by: Saeed Mahameed <saeedm@nvidia.com>
Link: https://lore.kernel.org/r/20220518183022.2034373-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
309ec44307
commit
d935053a62
|
|
@ -19,8 +19,8 @@ bool mlx5_lag_mpesw_is_activated(struct mlx5_core_dev *dev);
|
|||
void mlx5_lag_mpesw_init(struct mlx5_lag *ldev);
|
||||
void mlx5_lag_mpesw_cleanup(struct mlx5_lag *ldev);
|
||||
#else
|
||||
void mlx5_lag_mpesw_init(struct mlx5_lag *ldev) {}
|
||||
void mlx5_lag_mpesw_cleanup(struct mlx5_lag *ldev) {}
|
||||
static inline void mlx5_lag_mpesw_init(struct mlx5_lag *ldev) {}
|
||||
static inline void mlx5_lag_mpesw_cleanup(struct mlx5_lag *ldev) {}
|
||||
#endif
|
||||
|
||||
#endif /* __MLX5_LAG_MPESW_H__ */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user