net/mlx5: fix multiple definitions of mlx5_lag_mpesw_init / mlx5_lag_mpesw_cleanup
Subsystems (4)
Jakub Kicinski
maintainerPATCH 1/1 net/mlx5: fix multiple definitions of mlx5_lag_mpesw_init / mlx5_lag_mpesw_cleanup
static inline is needed in the header.
Fixes 94db33177819 ("net/mlx5: Support multiport eswitch mode")
Signed-off-by Jakub Kicinski <[email protected]>
---
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
--- drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.h +2 -2
@@ -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__ */
Signature · 1 line
2.34.3
Quoted 4 lines · Jakub Kicinski
static inline is needed in the header.
Fixes 94db33177819 ("net/mlx5: Support multiport eswitch mode")Signed-off-by Jakub Kicinski <[email protected]>
Acked-by Saeed Mahameed <[email protected]>
Sorry! Go ahead and apply this.
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:
Quoted 4 lines · On Wed, 18 May 2022 11:30:22 -0700 you wrote:
static inline is needed in the header.
Fixes 94db33177819 ("net/mlx5: Support multiport eswitch mode")Signed-off-by Jakub Kicinski <[email protected]>
Quoted 8 lines
---
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected]
CC: [email protected][...]
Here is the summary with links:
- [net-next] net/mlx5: fix multiple definitions of mlx5_lag_mpesw_init / mlx5_lag_mpesw_cleanup
https://git.kernel.org/netdev/net-next/c/d935053a62fa
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html