From patchwork Mon Nov 28 14:26:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101451 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp1158871qgi; Mon, 28 Nov 2016 06:26:48 -0800 (PST) X-Received: by 10.98.34.68 with SMTP id i65mr21837807pfi.135.1480343208661; Mon, 28 Nov 2016 06:26:48 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t27si55303320pfj.212.2016.11.28.06.26.48; Mon, 28 Nov 2016 06:26:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933044AbcK1O0h (ORCPT + 5 others); Mon, 28 Nov 2016 09:26:37 -0500 Received: from mout.kundenserver.de ([212.227.126.133]:53267 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932626AbcK1O0e (ORCPT ); Mon, 28 Nov 2016 09:26:34 -0500 Received: from wuerfel.lan ([78.43.21.235]) by mrelayeu.kundenserver.de (mreue005 [212.227.15.129]) with ESMTPA (Nemesis) id 0LrGGm-1cqDyX1QdQ-013AIR; Mon, 28 Nov 2016 15:26:25 +0100 From: Arnd Bergmann To: David Miller Cc: Arnd Bergmann , Jiri Pirko , Ido Schimmel , Vadim Pasternak , Ivan Vecera , Elad Raz , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next v2] mlxsw: switchib: add MLXSW_PCI dependency Date: Mon, 28 Nov 2016 15:26:04 +0100 Message-Id: <20161128142622.2758614-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:T6POs8qouF7SqasqDQM/BBtyrOp5wUevTMkxGt4MrSx5uG6GIhf /cVCOh0CO0+D6mko+uOhAG9Ydz28/LbkzZooP4tew8BXs+r9brTUKXz//u0ONqGoPtDQswp lqBJzOArj1CtX8tq7gTkADFWTxVEW3h4yThSBL2EbZs3GSWMnoUS9FFWP+h2ZzK+o5VNTRw znocgYuADJuCo6cYgX/mQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:JdXCplOG6Q8=:nz3I5KsGqYUhOpHlsujMwQ azWRQbel6K2TZmwJc6DvdP9jKnA3kwJi1FXowVYC1SCxjc58+T4X9wNE2kDkJBK5qYTNQUs9C VREeujdIzD0AdcVZweuErgayRCn27k+icUFEJjnkJsBmR/No6uiW6oqkLhLVPdlOP0jHHOfmQ x4WZ73z7xQs/HuVgE5004jHQGzFgaWIJ1q1A3dGzf2sWglcB/Hab2gPStFgVYpQUxmo1zehTd sc5FAm7mh6ZoHAYp99jv0L3IsUB5KTguRXHgbDZEkHx2g2Ao5CHdS0k1vU/bkMzdt1SR4L1Qo f0r65uR+ryP1eVaVGts593OHGUBQJ2xhxepN1h6Uimb1/p0KDzyUN106mFvco1x5kBtpcY5g7 UZhedKotL1W6yZe3Zz2Ha67KnVji6pRgfbd2tE3oJVTV9qFK2SipYTuKGNl6S5y9Z0I+bsO1B DDaREg1RKP6iiBIMY0/I/4BXoXIrkp3Dvrb/82vNzvjEn1BRyC5qnrWjFnhmXpJmVh53QdwMm WkSz4YwfigMBDZ7UJ006qud6GVFXArvuDLYugteDN3mVq9BsMf0N/j+R8q80DUpvJNbcO8G9X JMsLOPijqNORE6zFTtgeah4+6jkSOPLVpXBZxYCZXLLKWk6HBtZQqIWtjoIVAdCtjloPoVp+w 1kWkpqO2y4k0NQVnLZqBD9EGMfbo2/ju2Z8NeLlPmeTKgg/EQD3tBnXImGe8QWb2+qZQ= Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The newly added switchib driver fails to link if MLXSW_PCI=m: drivers/net/ethernet/mellanox/mlxsw/mlxsw_switchib.o: In function^Cmlxsw_sib_module_exit': switchib.c:(.exit.text+0x8): undefined reference to `mlxsw_pci_driver_unregister' switchib.c:(.exit.text+0x10): undefined reference to `mlxsw_pci_driver_unregister' drivers/net/ethernet/mellanox/mlxsw/mlxsw_switchib.o: In function `mlxsw_sib_module_init': switchib.c:(.init.text+0x28): undefined reference to `mlxsw_pci_driver_register' switchib.c:(.init.text+0x38): undefined reference to `mlxsw_pci_driver_register' switchib.c:(.init.text+0x48): undefined reference to `mlxsw_pci_driver_unregister' The other two such sub-drivers have a dependency, so add the same one here. In theory we could allow this driver if MLXSW_PCI is disabled, but it's probably not worth it. Fixes: d1ba52638456 ("mlxsw: switchib: Introduce SwitchIB and SwitchIB silicon driver") Reviewed-by: Jiri Pirko Signed-off-by: Arnd Bergmann --- v2: add Fixes tag drivers/net/ethernet/mellanox/mlxsw/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 diff --git a/drivers/net/ethernet/mellanox/mlxsw/Kconfig b/drivers/net/ethernet/mellanox/mlxsw/Kconfig index 95ae4c0d3a18..16f44b9aa076 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/Kconfig +++ b/drivers/net/ethernet/mellanox/mlxsw/Kconfig @@ -50,7 +50,7 @@ config MLXSW_I2C config MLXSW_SWITCHIB tristate "Mellanox Technologies SwitchIB and SwitchIB-2 support" - depends on MLXSW_CORE && NET_SWITCHDEV + depends on MLXSW_CORE && MLXSW_PCI && NET_SWITCHDEV default m ---help--- This driver supports Mellanox Technologies SwitchIB and SwitchIB-2