OSDN Git Service

net/mlx5: Lag, Make mlx5_lag_is_multipath() be static inline
authorMaor Dickman <maord@nvidia.com>
Mon, 25 Oct 2021 13:54:12 +0000 (16:54 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 27 Oct 2021 02:30:42 +0000 (19:30 -0700)
commit8ca9caee851c444810b70d9c167e7321f3ff68f8
tree64d4d8693b501984fd3807eba748ebec24f422fb
parentae3452995bd4723549520e3d61d0ccbcacb2745f
net/mlx5: Lag, Make mlx5_lag_is_multipath() be static inline

Fix "no previous prototype" W=1 warnings when CONFIG_MLX5_CORE_EN is not set:

  drivers/net/ethernet/mellanox/mlx5/core/lag_mp.h:34:6: error: no previous prototype for ‘mlx5_lag_is_multipath’ [-Werror=missing-prototypes]
     34 | bool mlx5_lag_is_multipath(struct mlx5_core_dev *dev) { return false; }
        |      ^~~~~~~~~~~~~~~~~~~~~

Fixes: 14fe2471c628 ("net/mlx5: Lag, change multipath and bonding to be mutually exclusive")
Signed-off-by: Maor Dickman <maord@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/lag/mp.h