projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
309ec44
)
net/mlx5: fix multiple definitions of mlx5_lag_mpesw_init / mlx5_lag_mpesw_cleanup
author
Jakub Kicinski
<kuba@kernel.org>
Wed, 18 May 2022 18:30:22 +0000
(11:30 -0700)
committer
Jakub Kicinski
<kuba@kernel.org>
Thu, 19 May 2022 04:38:31 +0000
(21:38 -0700)
static inline is needed in the header.
Fixes: 94db33177819 ("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>
drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.h
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.h
b/drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.h
index d39a02280e2972c1411a6869898d5ffed4539a94..be4abcb8fcd5bc1aca3cd4c18c8830aae6c89671 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.h
+++ b/
drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.h
@@
-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__ */