Message ID | 20230616090844.2677815-2-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1200752vqr; Fri, 16 Jun 2023 02:37:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7HD1mdNNZylKbRoTxXdXMxzMgG6xQIYBbNzXkzZoxtnE5zdbixFcxnWiCMlcrS+Zl3KnyH X-Received: by 2002:a17:90a:1597:b0:25b:e5b9:401d with SMTP id m23-20020a17090a159700b0025be5b9401dmr1793866pja.11.1686908256559; Fri, 16 Jun 2023 02:37:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686908256; cv=none; d=google.com; s=arc-20160816; b=ZU139D6pcu1IZlx0cJmwdrTC+Y7btXTzhJdQA5BIQoRkKtACfLSpd7KN32/QnKstrZ K/qS2K0JdsA0GB/UeOhLVQTSV5IieN4oi1Eglr3ShwMW67no+1JuTN65oYZmhuCbNqyY 7DoUugmbt2ToBIrxZ+Uandz6UmwBYEJipJ31oVrV60FhD9HyVIPXt2jconAXGuojpNz4 1zHvVOpR28wtyFfl55bGGD5O8fv8jOrpkhdMXY/y4RGDuhoLykKmlLNEqZBwtdPnr0v+ +7kaLvvSRD63Khs7NdnSLH/t//oYXftY9tzQDJZ7ERWxftkya4Y0G+XZYN0isrAAFUD/ VNhg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4+e6n9tugul4MjTxqoQHzyMJ6IYc4RdoQ+CxTNf3mXE=; b=UOiHPWHlOYCGVosOyfxOun1sNbCtXnO2miTHulNqCBPyTCqjJGlnuBdUwjPisu+gyH WAIlKGgHAK0VNL4zDoT3Py9LOfykapPNWAYEYz8lWoXcreXjmGc5CO83ASh5cYAh5qyW 8acjhHF/3lvO02j44tWB3uhXOgvehVlhRHKRAeuMvo1KrTKlNmxX3ZTl8xeOJwHTpaf8 uIhKVDcrfU57CJotni80qOauPR5wE7yxh/dlqGUR8SwVv9rVDWs4iCM0IvjSas8Nw1Tp Maa5mUTnqQpYvOSIaY4WYyQgiht5dC/OhxfqVS5E1hGV6T2i4ym2TkZZdUF+j453KiLf R8Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sgxB3PPe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k17-20020a170902c41100b001a51368b098si9750228plk.209.2023.06.16.02.37.20; Fri, 16 Jun 2023 02:37:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sgxB3PPe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344055AbjFPJLL (ORCPT <rfc822;maxin.john@gmail.com> + 99 others); Fri, 16 Jun 2023 05:11:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344813AbjFPJKe (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 16 Jun 2023 05:10:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CED5B420F for <linux-kernel@vger.kernel.org>; Fri, 16 Jun 2023 02:09:05 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 50DF76326F for <linux-kernel@vger.kernel.org>; Fri, 16 Jun 2023 09:09:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A41EC433C0; Fri, 16 Jun 2023 09:09:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686906544; bh=iPWPXNvnYRe2+h21DBS9ZfvzMiWbCC13nR/zPknLFF8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sgxB3PPe7xDo5i1HoqL5Nkc8iI3Igjm7zkJRKSoXXGviq3rQZkC+DUKVcBcKTuX1l Y+v+WN/zaUD1H7JdvtbQq9E9sWKNvEpbaa1U4ahwYGjKTJ9yoPn6R3kfuJvJ8v/Qdb Y0E+he2nJLOvJusREIyfzy4yl7zqQ+mtsk8GtM6D8POPXd3rpY8A6sIqjDOLjw5be/ T78yns/TYvPxei64/CIZgxtYSi9tCKIaEWbKx74gpSHxR5zcmUjXtR42Rk82XBITfG ZX0iAEUNCEUHkzWCgUwHqnKTmcL4OQveGOaiDzHXDQclQxW56DqQ/Eh6B2R3mjWJFR rnmjGGAv+AWLw== From: Arnd Bergmann <arnd@kernel.org> To: Edward Cree <ecree.xilinx@gmail.com>, Martin Habets <habetsm.xilinx@gmail.com>, Jakub Kicinski <kuba@kernel.org> Cc: Arnd Bergmann <arnd@arndb.de>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Paolo Abeni <pabeni@redhat.com>, Alejandro Lucero <alejandro.lucero-palau@amd.com>, Jiri Pirko <jiri@resnulli.us>, Pieter Jansen van Vuuren <pieter.jansen-van-vuuren@amd.com>, Simon Horman <simon.horman@corigine.com>, netdev@vger.kernel.org, linux-net-drivers@amd.com, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] sfc: add CONFIG_INET dependency for TC offload Date: Fri, 16 Jun 2023 11:08:19 +0200 Message-Id: <20230616090844.2677815-2-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230616090844.2677815-1-arnd@kernel.org> References: <20230616090844.2677815-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768851511884884907?= X-GMAIL-MSGID: =?utf-8?q?1768851511884884907?= |
Series |
[1/2] sfc: fix uninitialized variable use
|
|
Commit Message
Arnd Bergmann
June 16, 2023, 9:08 a.m. UTC
From: Arnd Bergmann <arnd@arndb.de> The driver now fails to link when CONFIG_INET is disabled, so add an explicit Kconfig dependency: ld.lld: error: undefined symbol: ip_route_output_flow >>> referenced by tc_encap_actions.c >>> drivers/net/ethernet/sfc/tc_encap_actions.o:(efx_tc_flower_create_encap_md) in archive vmlinux.a ld.lld: error: undefined symbol: ip_send_check >>> referenced by tc_encap_actions.c >>> drivers/net/ethernet/sfc/tc_encap_actions.o:(efx_gen_encap_header) in archive vmlinux.a >>> referenced by tc_encap_actions.c >>> drivers/net/ethernet/sfc/tc_encap_actions.o:(efx_gen_encap_header) in archive vmlinux.a ld.lld: error: undefined symbol: arp_tbl >>> referenced by tc_encap_actions.c >>> drivers/net/ethernet/sfc/tc_encap_actions.o:(efx_tc_netevent_event) in archive vmlinux.a >>> referenced by tc_encap_actions.c >>> drivers/net/ethernet/sfc/tc_encap_actions.o:(efx_tc_netevent_event) in archive vmlinux.a Fixes: a1e82162af0b8 ("sfc: generate encap headers for TC offload") Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- drivers/net/ethernet/sfc/Kconfig | 1 + 1 file changed, 1 insertion(+)
Comments
On Fri, Jun 16, 2023 at 11:08:19AM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > The driver now fails to link when CONFIG_INET is disabled, so > add an explicit Kconfig dependency: > > ld.lld: error: undefined symbol: ip_route_output_flow > >>> referenced by tc_encap_actions.c > >>> drivers/net/ethernet/sfc/tc_encap_actions.o:(efx_tc_flower_create_encap_md) in archive vmlinux.a > > ld.lld: error: undefined symbol: ip_send_check > >>> referenced by tc_encap_actions.c > >>> drivers/net/ethernet/sfc/tc_encap_actions.o:(efx_gen_encap_header) in archive vmlinux.a > >>> referenced by tc_encap_actions.c > >>> drivers/net/ethernet/sfc/tc_encap_actions.o:(efx_gen_encap_header) in archive vmlinux.a > > ld.lld: error: undefined symbol: arp_tbl > >>> referenced by tc_encap_actions.c > >>> drivers/net/ethernet/sfc/tc_encap_actions.o:(efx_tc_netevent_event) in archive vmlinux.a > >>> referenced by tc_encap_actions.c > >>> drivers/net/ethernet/sfc/tc_encap_actions.o:(efx_tc_netevent_event) in archive vmlinux.a > > Fixes: a1e82162af0b8 ("sfc: generate encap headers for TC offload") > Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Simon Horman <simon.horman@corigine.com>
On 16/06/2023 10:08, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > The driver now fails to link when CONFIG_INET is disabled, so > add an explicit Kconfig dependency: > > ld.lld: error: undefined symbol: ip_route_output_flow >>>> referenced by tc_encap_actions.c >>>> drivers/net/ethernet/sfc/tc_encap_actions.o:(efx_tc_flower_create_encap_md) in archive vmlinux.a > > ld.lld: error: undefined symbol: ip_send_check >>>> referenced by tc_encap_actions.c >>>> drivers/net/ethernet/sfc/tc_encap_actions.o:(efx_gen_encap_header) in archive vmlinux.a >>>> referenced by tc_encap_actions.c >>>> drivers/net/ethernet/sfc/tc_encap_actions.o:(efx_gen_encap_header) in archive vmlinux.a > > ld.lld: error: undefined symbol: arp_tbl >>>> referenced by tc_encap_actions.c >>>> drivers/net/ethernet/sfc/tc_encap_actions.o:(efx_tc_netevent_event) in archive vmlinux.a >>>> referenced by tc_encap_actions.c >>>> drivers/net/ethernet/sfc/tc_encap_actions.o:(efx_tc_netevent_event) in archive vmlinux.a > > Fixes: a1e82162af0b8 ("sfc: generate encap headers for TC offload") > Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Edward Cree <ecree.xilinx@gmail.com> and I think you also need Fixes: 7e5e7d800011 ("sfc: neighbour lookup for TC encap action offload") since that added the references to ip_route_output_flow and arp_tbl (the commit in your Fixes: added the ip_send_check reference on top of that). You also might want to add the Closes: tag from [1], I don't know how that works but I assume it'll make someone's regression-bot happy. -ed [1] https://lore.kernel.org/oe-kbuild-all/202306151656.yttECVTP-lkp@intel.com/ > --- > drivers/net/ethernet/sfc/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/ethernet/sfc/Kconfig b/drivers/net/ethernet/sfc/Kconfig > index 4af36ba8906ba..3eb55dcfa8a61 100644 > --- a/drivers/net/ethernet/sfc/Kconfig > +++ b/drivers/net/ethernet/sfc/Kconfig > @@ -50,6 +50,7 @@ config SFC_MCDI_MON > config SFC_SRIOV > bool "Solarflare SFC9100-family SR-IOV support" > depends on SFC && PCI_IOV > + depends on INET > default y > help > This enables support for the Single Root I/O Virtualization >
Linux regression tracking (Thorsten Leemhuis)
June 16, 2023, 1:45 p.m. UTC |
#3
Addressed
Unaddressed
On 16.06.23 13:39, Edward Cree wrote: > On 16/06/2023 10:08, Arnd Bergmann wrote: >> >> Fixes: a1e82162af0b8 ("sfc: generate encap headers for TC offload") >> Signed-off-by: Arnd Bergmann <arnd@arndb.de> > > Reviewed-by: Edward Cree <ecree.xilinx@gmail.com> > and I think you also need > Fixes: 7e5e7d800011 ("sfc: neighbour lookup for TC encap action offload") > since that added the references to ip_route_output_flow and arp_tbl (the > commit in your Fixes: added the ip_send_check reference on top of that). > > You also might want to add the Closes: tag from [1], I don't know how > that works but I assume it'll make someone's regression-bot happy. > > [1] https://lore.kernel.org/oe-kbuild-all/202306151656.yttECVTP-lkp@intel.com/ FWIW, yes, regression tracking relies on them (for now Link: and the newly introduced Closes: work; the latter came up totally independent of regression tracking). And I have no problem with being the bad guy here. :-D But for completeness, in case anyone cares: It's Linus that for many years already wants these links. He a while ago mentioned that in a few posts I bookmarked: https://lore.kernel.org/all/CAHk-=wjMmSZzMJ3Xnskdg4+GGz=5p5p+GSYyFBTh0f-DgvdBWg@mail.gmail.com/ https://lore.kernel.org/all/CAHk-=wgs38ZrfPvy=nOwVkVzjpM3VFU1zobP37Fwd_h9iAD5JQ@mail.gmail.com/ https://lore.kernel.org/all/CAHk-=wjxzafG-=J8oT30s7upn4RhBs6TX-uVFZ5rME+L5_DoJA@mail.gmail.com/ But that's nothing new: Documentation/process/submitting-patches.rst explained this usage for many years already (I just made this more explicit a while a go). Ciao, Thorsten
diff --git a/drivers/net/ethernet/sfc/Kconfig b/drivers/net/ethernet/sfc/Kconfig index 4af36ba8906ba..3eb55dcfa8a61 100644 --- a/drivers/net/ethernet/sfc/Kconfig +++ b/drivers/net/ethernet/sfc/Kconfig @@ -50,6 +50,7 @@ config SFC_MCDI_MON config SFC_SRIOV bool "Solarflare SFC9100-family SR-IOV support" depends on SFC && PCI_IOV + depends on INET default y help This enables support for the Single Root I/O Virtualization