Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7057BC2D0E4 for ; Mon, 23 Nov 2020 21:19:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0F2B1206F9 for ; Mon, 23 Nov 2020 21:19:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="AEiZyIld" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730007AbgKWVTN (ORCPT ); Mon, 23 Nov 2020 16:19:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:58164 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728093AbgKWVTN (ORCPT ); Mon, 23 Nov 2020 16:19:13 -0500 Received: from lt-jalone-7480.mtl.com (c-24-6-56-119.hsd1.ca.comcast.net [24.6.56.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A3AC6206B5; Mon, 23 Nov 2020 21:19:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606166352; bh=uOk9uSKNbK/SogGqvMlYrz6rf6Ptwhf3Cekf9x9WU08=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=AEiZyIldULrbP7ohP7qDxNthAo9nEB0VS2g+1Tej9FbyF8YleQo9nDCgSFFEKp8JI gLXkPYQLRMaFMd0RuaeX/jR0DCclXaWBZiiuW7SgHIXFf/kOGoLcii4D8MIisIOK3v Xtl6F4YtUNeGni6i0PLqeylUH6RjGZ98lCh7WLLs= Message-ID: Subject: Re: [PATCH] net: mlx5e: fix fs_tcp.c build when IPV6 is not enabled From: Saeed Mahameed To: Tariq Toukan , Randy Dunlap , netdev@vger.kernel.org Cc: kernel test robot , Boris Pismenny , Tariq Toukan , "David S. Miller" , Jakub Kicinski Date: Mon, 23 Nov 2020 13:19:10 -0800 In-Reply-To: References: <20201122211231.5682-1-rdunlap@infradead.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Mon, 2020-11-23 at 12:08 +0200, Tariq Toukan wrote: > > On 11/22/2020 11:12 PM, Randy Dunlap wrote: > > 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 > > Cc: Saeed Mahameed > > Cc: Boris Pismenny > > Cc: Tariq Toukan > > Cc: "David S. Miller" > > Cc: Jakub Kicinski > > --- > > Reviewed-by: Tariq Toukan > > Applied to net-mlx5, Thanks!