diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-11-27 16:27:00 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-30 20:43:40 +0300 |
commit | 5f9fc3325ef95398c363b9b7813a7e99d4d85d7d (patch) | |
tree | 4a6eb57ed1ffa304385f42af3bb20b9841f06e07 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 2745aea6750ff0d2c48285d25bdb00e5b636ec8b (diff) | |
download | linux-5f9fc3325ef95398c363b9b7813a7e99d4d85d7d.tar.xz |
net/mlx5e: Fix build error without IPV6
If IPV6 is not set and CONFIG_MLX5_ESWITCH is y,
building fails:
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c:322:5: error: redefinition of mlx5e_tc_tun_create_header_ipv6
int mlx5e_tc_tun_create_header_ipv6(struct mlx5e_priv *priv,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c:7:0:
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h:67:1: note: previous definition of mlx5e_tc_tun_create_header_ipv6 was here
mlx5e_tc_tun_create_header_ipv6(struct mlx5e_priv *priv,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Use #ifdef to guard this, also move mlx5e_route_lookup_ipv6
to cleanup unused warning.
Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: e689e998e102 ("net/mlx5e: TC, Stub out ipv6 tun create header function")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions