From patchwork Thu Feb 25 14:38:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 387218 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp364903jap; Thu, 25 Feb 2021 06:40:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJz6f7hRvnlRcnx2owG4PYEm78LbLDMgUnc6e4v3/3xEqhVlUaFX8Z9PP/FyT2IZ/5GHWFhl X-Received: by 2002:a05:6402:b2d:: with SMTP id bo13mr3196736edb.120.1614264007397; Thu, 25 Feb 2021 06:40:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614264007; cv=none; d=google.com; s=arc-20160816; b=sGTQQH5e0miYPFkuefPDAGo8A3hHf2zzyEypOWC/O7W46D/6SrtPYcBjwe6N0RHYSb kbR1T88cWJCEnCiY8F9I8BwmCRHLeLXa3UpWo30lr3n+RCoMKfYWUSTwJNSbkEMV0Dfx fcIF2fB76TnYyVVUG3KpYsIZvH4V/eWcsPR5ru0PqZb7sBFy3QDZiQmicctyc2KU/4UY fJNc13Gu3sewq0R/ceKQ3M0wsLxacb+DLrxtc4o1k9WF+QwiLPmwsWKxQVwMAs0W9g5F HuU/+XD9xApNYg7bfa58KMEpfX3mBB0N0PtBcqBHEsuvD8DkBY+qmRkddRpwvD7iHhPU hzVg== 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=qohU7kPDqeVMP4ZiM0GLvlT3OxWvpRinpytghmNSef0=; b=oRyOUiVL/DZZHOUo1UOJVYGRvRGKatpVtxZpvjNNnK0by7bETOaoZbDvTR8sAV3hxI 6zZLJB0jPuzhD/UVsphd1A+4IEF9wDoXmAZ6v9GfRq8G8zEjJJCLep70e358xOnqRctr CeS0b5gR68r5EvOxzGIqk3zFhMRHAdsQ4J+zwrceBqewW9eluliuHazYkwfvM/eIdCxM W/Rl4N99GsnmczfAig4rsf7mKydw8XlVys3sqNMuf7WCZoLijKnwx/1/lUpM0P2Y9hYP nwkQtPfnDrPOUUsXZiZPXKPlSPB8CxQWrxLCTqC8HxkOtElC2FBuplP3qXQDAw6kfDDB DSug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h3HE6oYt; 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 dk7si3543705ejb.570.2021.02.25.06.40.07; Thu, 25 Feb 2021 06:40:07 -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=h3HE6oYt; 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 S232139AbhBYOkE (ORCPT + 9 others); Thu, 25 Feb 2021 09:40:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:57886 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229954AbhBYOj5 (ORCPT ); Thu, 25 Feb 2021 09:39:57 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1879364EC3; Thu, 25 Feb 2021 14:39:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614263956; bh=Qq8jqEoh+azun2jK73XZzJMU37OcfRZrN7R9i+zYwUo=; h=From:To:Cc:Subject:Date:From; b=h3HE6oYtJcCq9fIpq9tXgUMqk+xtwGeeqeTOgd3IknWR9r1tzBOqxNbQRqF0xPYZk 3qN2f91McxFiBFDmuoHD34MylKmKZnMJdZO7WO8rFLng53j3722BRJSj6OMAqxSh6x KDWeEpfNL7TkuPjewwrYmpfC+Y2D9xT0iCFoO53FNFtpCJRIWC6X8Mc3fffAO5ixVV 8NDKnia+T5/X1MxPaX/Wo6P1L2qrXsqUzhCbF/I/g8pH82O/fl6FLJ7GHlmCc3tAPZ QiyXC2ccdVo8TyB3tET4f8QAIWGiLXS+LR/rpwyhlnohG3XL5nTPXSKpMcBiwcwiMC 6WzSp/oySZJTw== From: Arnd Bergmann To: Vladimir Oltean , Claudiu Manoil , Alexandre Belloni , UNGLinuxDriver@microchip.com, "David S. Miller" , Jakub Kicinski Cc: Arnd Bergmann , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] net: mscc: ocelot: select NET_DEVLINK Date: Thu, 25 Feb 2021 15:38:31 +0100 Message-Id: <20210225143910.3964364-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 Without this option, the driver fails to link: ld.lld: error: undefined symbol: devlink_sb_register >>> referenced by ocelot_devlink.c >>> net/ethernet/mscc/ocelot_devlink.o:(ocelot_devlink_sb_register) in archive drivers/built-in.a >>> referenced by ocelot_devlink.c >>> net/ethernet/mscc/ocelot_devlink.o:(ocelot_devlink_sb_register) in archive drivers/built-in.a Fixes: f59fd9cab730 ("net: mscc: ocelot: configure watermarks using devlink-sb") Signed-off-by: Arnd Bergmann --- drivers/net/ethernet/mscc/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.29.2 diff --git a/drivers/net/ethernet/mscc/Kconfig b/drivers/net/ethernet/mscc/Kconfig index c0ede0ca7115..05cb040c2677 100644 --- a/drivers/net/ethernet/mscc/Kconfig +++ b/drivers/net/ethernet/mscc/Kconfig @@ -13,6 +13,7 @@ if NET_VENDOR_MICROSEMI # Users should depend on NET_SWITCHDEV, HAS_IOMEM config MSCC_OCELOT_SWITCH_LIB + select NET_DEVLINK select REGMAP_MMIO select PACKING select PHYLIB