]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Add missing inline to stub esw_add_restore_rule
authorNathan Chancellor <natechancellor@gmail.com>
Sat, 14 Mar 2020 03:40:20 +0000 (20:40 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 18 Mar 2020 02:41:13 +0000 (19:41 -0700)
commite40a0c58f7b27e7fba3761b6b5494f8ef2898a61
treee7f2953b44e2dd64b879208ea0209ca4b749220d
parent007e4fd768a136e9a229180bac09d2fb40060f77
net/mlx5: Add missing inline to stub esw_add_restore_rule

When CONFIG_MLX5_ESWITCH is unset, clang warns:

In file included from drivers/net/ethernet/mellanox/mlx5/core/main.c:58:
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h:670:1: warning: unused
function 'esw_add_restore_rule' [-Wunused-function]
esw_add_restore_rule(struct mlx5_eswitch *esw, u32 tag)
^
1 warning generated.

This stub function is missing inline; add it to suppress the warning.

Fixes: d8802af9ffdc ("net/mlx5: E-Switch, Get reg_c0 value on CQE")
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h