[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20161129.203642.1125810970021004476.davem@davemloft.net>
Date: Tue, 29 Nov 2016 20:36:42 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: arnd@...db.de
Cc: jiri@...lanox.com, idosch@...lanox.com, vadimp@...lanox.com,
cera@...a.cz, eladr@...lanox.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next v2] mlxsw: switchib: add MLXSW_PCI dependency
From: Arnd Bergmann <arnd@...db.de>
Date: Mon, 28 Nov 2016 15:26:04 +0100
> 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 <jiri@...lanox.com>
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
> ---
> v2: add Fixes tag
Applied, thanks Arnd.
Powered by blists - more mailing lists