]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 May 2019 13:43:49 +0000 (06:43 -0700)
commit5a27284c5ba69475fe53aee6b0f36bcb16baac97
treea9095b3c75a49ca63cc56c8d24f271c06b3ff7ca
parent0729d591559f0de2eb12bde6214e2f38f26aa06d
net/mlx5e: Fix compilation warning in en_tc.c

[ Upstream commit ee576ec1c1c66ec1cd0c4735bb12bc08f675f530 ]

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: 04de7dda7394 ("net/mlx5e: Infrastructure for duplicated offloading of TC flows")
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c