From patchwork Mon Jan 25 11:31:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 370581 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp4621074jam; Mon, 25 Jan 2021 21:03:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJyYxStjOTPJqXxlSF1jBMKVXjcXRKTS09NHA4OAx2YxxiOkBW1EfmXTRYcUCRHP3yuxZwwF X-Received: by 2002:a17:906:c78b:: with SMTP id cw11mr2383708ejb.448.1611637417669; Mon, 25 Jan 2021 21:03:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611637417; cv=none; d=google.com; s=arc-20160816; b=MVrPZJi6b5yzPosNrK4VELGGXKuFwM3Oc+8oBpOdY92mtf2dds5f28vYoKhvO6z8Z5 dTDZHTDtutJ6zFTB8WQ1MlKpuRp9B+NFZHTiHRaIjx2NXcVYVb6sWnZFiEQFNK4cDgZa 2FbxIBRHEY7+9rocROLPTbtqfLDQ/I3vKp5DgGOTQR9Mo6jhLpRSaiiaMQlwAN+J2IDc LPegAdB7Wo+CbHdHXzJzdaqWS4cubs5ErJ4nAKy/DsU8Y/RphNWhmG5AJ4u1Vd8I/aCx h/d2xfI3w4pjbBKNd5th9i4yx+mYZB4QSiLipvyOGJOUANr4ayOAYUQ1vyplqTm8Viot GVpw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=saDKrYxw2wxOZbKA02InZ23fTR0g4ZM7pwwhFInywZ0=; b=RE0sFkcjAiy2ErF4K5uBvHQzrxSYGcEiZ5jVynXVsRMr4aQGQy4Vo2RpMfNp+MB1S8 C5uJLMab7HWI9FmS8CZ2kf3DAdTRDd5v7+0F49VWeKlmUn2i0310DM6AVlUCXrOXI5Qv eDyM5juaXFFj4oFUlArzuuHJOLHDUilNDvosiiBgftOkFOa9sWy1CfM2wtnJoyq3Ib2H tKxO3zlbQ8hepgcjL/kguaRxjmLFtolm466ew/a5oo7tnDi0RxpeQz7l80Qmk3x8jCrn XSULJQNACUI7Rf/E4c1tMFYgwFNGQY8xytZhmJaNmVLTlYIRoW8O5ejlhVhUXZKt/luP yQUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mgTolqdV; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k8si7948119edx.303.2021.01.25.21.03.37; Mon, 25 Jan 2021 21:03:37 -0800 (PST) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mgTolqdV; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-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 S1727147AbhAZFCI (ORCPT + 7 others); Tue, 26 Jan 2021 00:02:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:39070 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728250AbhAYMoD (ORCPT ); Mon, 25 Jan 2021 07:44:03 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 68E1B229EF; Mon, 25 Jan 2021 11:32:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611574334; bh=korZHA4N+5N7x+HxWDYsFG7OLXGozqFeC35pIVA8E1w=; h=From:To:Cc:Subject:Date:From; b=mgTolqdVu3vPLoH+5GdnRjtJbmkEHvzmgOd5331GrCD25GBB8VGE8Lu30fOVo+A/G qtGdhKhrVWvL+qCNV6Jm9UniNoyudf1/Hf4Dqc+HETApfveB+8KtI7jOwBOVh4avTF s+1G74+0O8RHnkHCZWm8h2b3m7vT3HUD89LjQd76Z1UScbRI7Mw65Wyi+7tla/YoPj 3l8BVFE/P+9KEH+XmJ2GIv5W1aY1T7uktwyNPXdRbMvAvybVeznR2YpcmmWfwgVHA5 dXx/aHnAuAb1tgbQIU3tb371/lDD96K0FcWVUewjXoBjtN8lDq4UXGxHTNrN2olf36 FdqAsoSg7DXHg== From: Arnd Bergmann To: "David S. Miller" , Jakub Kicinski Cc: Arnd Bergmann , Mauro Carvalho Chehab , Florian Fainelli , Andrew Lunn , Loic Poulain , Pablo Neira Ayuso , Masahiro Yamada , Martin Varghese , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] [net-next] bonding: add TLS dependency Date: Mon, 25 Jan 2021 12:31:59 +0100 Message-Id: <20210125113209.2248522-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Arnd Bergmann When TLS is a module, the built-in bonding driver may cause a link error: x86_64-linux-ld: drivers/net/bonding/bond_main.o: in function `bond_start_xmit': bond_main.c:(.text+0xc451): undefined reference to `tls_validate_xmit_skb' Add a dependency to avoid the problem. Signed-off-by: Arnd Bergmann --- I could not figure out when this started, it seems to have been possible for a while. --- drivers/net/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.29.2 diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 672fcdd9aecb..45d12b0e9a2f 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -42,6 +42,7 @@ config BONDING tristate "Bonding driver support" depends on INET depends on IPV6 || IPV6=n + depends on TLS || TLS_DEVICE=n help Say 'Y' or 'M' if you wish to be able to 'bond' multiple Ethernet Channels together. This is called 'Etherchannel' by Cisco,