Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1679294pxu; Sun, 6 Dec 2020 03:49:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJxB+39ahKolwvK8mlyGxiHqyd+7pZsPPP2/iV5saS7ve6yk30xft0IgnxHd7RHow590KaJa X-Received: by 2002:a17:906:6546:: with SMTP id u6mr15335295ejn.36.1607255367946; Sun, 06 Dec 2020 03:49:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607255367; cv=none; d=google.com; s=arc-20160816; b=ly61pumYlOrNQOKr9/9SGcFzQQEnrSx4JPdsyjkC4camR5k9Of5T8cjXSSangMKPm8 KdUkZ/yrH3fDfLwTY/4AQ4MrAGvZvMB10WT4rx/A9GDQwMNhniW3n+2q6qJo0nauVjUf 2XJuE9ockIX4NJ5r5oUqd64oWWZ9JnfYmHHt7s1i09Pv+6FPBVQ75QbFcSjQmEmKPzDR EHuzn0xxKofMAhZzDJR/j84qh2apXspu5hVV+klzmwQ0rsJ5iX9dKutYSmechU8UHrsI lCQtcorhgtoFWdybet8LlZkqw7lcD09IcdHsM9hyiZ2zrX2hIrvIVwIcqz5oq8ODrVYd sdEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=HxQMcZ7Ehbk1jrEiGgGawI+NNRp2nzjpms+A/TgU+Uo=; b=m2A6FcN6IhvWOYAftjLcgWAC2KYcL8GziS38SiovTa2/QMXaxkJinoBIirSg+2tO/A Yv0FktuMy1oR8baN1dheeLvL0gWsUtZ5MfBFw5kIo4Beu+r5jrbYznSGx8d7x0aqL0JV +b12bPsT90eBNiqW2vD96btOyTaancR9wjD76wJiFgPRwRe+PxhBWzOEGBRdy60FY1uV ER7wvmW77g0bt9lLrPm+cr1P3bB73IeoC6KXRJ+OhAPB3jDhOCEUGyEptXbVCz//BgeA Jr1lbXjbNkpVErS0lqNZ3XVbHKSd4ylt7DqB+Zx9Tn0tKF7NH4wDqr5eIuWiFDmnTPU2 fZ6g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r6si1871894ejb.640.2020.12.06.03.49.04; Sun, 06 Dec 2020 03:49:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729552AbgLFLpj (ORCPT + 99 others); Sun, 6 Dec 2020 06:45:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:45740 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728001AbgLFLpg (ORCPT ); Sun, 6 Dec 2020 06:45:36 -0500 From: Greg Kroah-Hartman Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , kernel test robot , Saeed Mahameed , Jakub Kicinski Subject: [PATCH 5.9 38/46] net: mlx5e: fix fs_tcp.c build when IPV6 is not enabled Date: Sun, 6 Dec 2020 12:17:46 +0100 Message-Id: <20201206111558.294498543@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201206111556.455533723@linuxfoundation.org> References: <20201206111556.455533723@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Dunlap [ Upstream commit 8a78a440108e55ddd845b0ef46df575248667520 ] Fix build when CONFIG_IPV6 is not enabled by making a function be built conditionally. Fixes these build errors and warnings: ../drivers/net/ethernet/mellanox/mlx5/core/en_accel/fs_tcp.c: In function 'accel_fs_tcp_set_ipv6_flow': ../include/net/sock.h:380:34: error: 'struct sock_common' has no member named 'skc_v6_daddr'; did you mean 'skc_daddr'? 380 | #define sk_v6_daddr __sk_common.skc_v6_daddr | ^~~~~~~~~~~~ ../drivers/net/ethernet/mellanox/mlx5/core/en_accel/fs_tcp.c:55:14: note: in expansion of macro 'sk_v6_daddr' 55 | &sk->sk_v6_daddr, 16); | ^~~~~~~~~~~ At top level: ../drivers/net/ethernet/mellanox/mlx5/core/en_accel/fs_tcp.c:47:13: warning: 'accel_fs_tcp_set_ipv6_flow' defined but not used [-Wunused-function] 47 | static void accel_fs_tcp_set_ipv6_flow(struct mlx5_flow_spec *spec, struct sock *sk) Fixes: 5229a96e59ec ("net/mlx5e: Accel, Expose flow steering API for rules add/del") Signed-off-by: Randy Dunlap Reported-by: kernel test robot Signed-off-by: Saeed Mahameed Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/mellanox/mlx5/core/en_accel/fs_tcp.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/fs_tcp.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/fs_tcp.c @@ -44,6 +44,7 @@ static void accel_fs_tcp_set_ipv4_flow(s outer_headers.dst_ipv4_dst_ipv6.ipv4_layout.ipv4); } +#if IS_ENABLED(CONFIG_IPV6) static void accel_fs_tcp_set_ipv6_flow(struct mlx5_flow_spec *spec, struct sock *sk) { MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_protocol); @@ -63,6 +64,7 @@ static void accel_fs_tcp_set_ipv6_flow(s outer_headers.dst_ipv4_dst_ipv6.ipv6_layout.ipv6), 0xff, 16); } +#endif void mlx5e_accel_fs_del_sk(struct mlx5_flow_handle *rule) {