[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0225e67bfeedebca1dc5d1daef12f2cdc13452d4.camel@mellanox.com>
Date: Sat, 30 Nov 2019 07:32:38 +0000
From: Saeed Mahameed <saeedm@...lanox.com>
To: "davem@...emloft.net" <davem@...emloft.net>,
Yevgeny Kliteynik <kliteyn@...lanox.com>,
"pablo@...filter.org" <pablo@...filter.org>,
Oz Shlomo <ozsh@...lanox.com>, Eli Cohen <eli@...lanox.com>,
Eli Britstein <elibr@...lanox.com>,
"yuehaibing@...wei.com" <yuehaibing@...wei.com>,
"leon@...nel.org" <leon@...nel.org>, Roi Dayan <roid@...lanox.com>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"linux-rdma@...r.kernel.org" <linux-rdma@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] net/mlx5e: Fix build error without IPV6
On Wed, 2019-11-27 at 21:27 +0800, YueHaibing wrote:
> 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@...wei.com>
> Fixes: e689e998e102 ("net/mlx5e: TC, Stub out ipv6 tun create header
> function")
> Signed-off-by: YueHaibing <yuehaibing@...wei.com>
Acked-by: Saeed Mahameed <saeedm@...lanox.com>
Powered by blists - more mailing lists