]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix compilation warning in en_tc.c
authorSaeed Mahameed <saeedm@mellanox.com>
Thu, 21 Mar 2019 22:51:33 +0000 (15:51 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 22 Mar 2019 19:09:30 +0000 (12:09 -0700)
commitaddabbf1d0080d1f66558e6f9aa660e10f8215fe
treeffe6c67a3391a1704a3ed8dca5c1ca3cee27ff81
parentfce8021cf1b37566a8c91832ebe56d7ad7910ce4
net/mlx5e: Fix compilation warning in en_tc.c

Amazingly a mlx5e_tc function is being called from the eswitch layer,
which is by itself very terrible! The function was declared locally in
eswitch_offloads.c so it could be used there, which caused the following
compilation warning, fix that.

drivers/.../mlx5/core/en_tc.c:3242:6: [-Werror=missing-prototypes]
error: no previous prototype for ‘mlx5e_tc_clean_fdb_peer_flows’

Fixes: de2adb12c9ef ("net/mlx5e: Infrastructure for duplicated offloading of TC flows")
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c