]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix unused function warning of mlx5i_flow_type_mask
authorShay Drory <shayd@nvidia.com>
Mon, 18 Oct 2021 06:18:39 +0000 (09:18 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 25 Oct 2021 20:51:18 +0000 (13:51 -0700)
commitc0d4e202a2343a01d26aa4fd1757eb548039823b
treef4b1730ac5613114954c3d6525a47ea62bb0c4cc
parentcdc5478a714d88c45a98c288912f1a14a895a4da
net/mlx5: Fix unused function warning of mlx5i_flow_type_mask

The cited commit is causing unused-function warning[1] when
CONFIG_MLX5_EN_RXNFC is not set.
Fix this by moving the function into the ifdef, where it's only used

[1]
warning: ‘mlx5i_flow_type_mask’ defined but not used [-Wunused-function]

Fixes: 0882bad5c001 ("net/mlx5i: Enable Rx steering for IPoIB via ethtool")
Signed-off-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ethtool.c