net/mlx5e: fix mlx5e_tc_tun_update_header_ipv6 dummy definition
authorArnd Bergmann <arnd@arndb.de>
Thu, 25 Feb 2021 12:54:54 +0000 (13:54 +0100)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 11 Mar 2021 22:35:12 +0000 (14:35 -0800)
commit87f77a6797971579a1da497ac01b692bafbc6cca
tree8f73a6113e12606c4d1a1f78d3b59d8b2c208e09
parent76e68d950a170fb5cf70165bb442ba9636a19232
net/mlx5e: fix mlx5e_tc_tun_update_header_ipv6 dummy definition

The alternative implementation of this function in a header file
is declared as a global symbol, and gets added to every .c file
that includes it, which leads to a link error:

arm-linux-gnueabi-ld: drivers/net/ethernet/mellanox/mlx5/core/en_rx.o: in function `mlx5e_tc_tun_update_header_ipv6':
en_rx.c:(.text+0x0): multiple definition of `mlx5e_tc_tun_update_header_ipv6'; drivers/net/ethernet/mellanox/mlx5/core/en_main.o:en_main.c:(.text+0x0): first defined here

Mark it 'static inline' like the other functions here.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Vlad Buslov <vladbu@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h