aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/cavium/Kconfig
diff options
context:
space:
mode:
authorArnd Bergmann2015-05-28 16:00:46 +0200
committerDavid S. Miller2015-05-30 23:38:49 -0700
commit5e9615bfb9586055adfa32958b5fe69eec622354 (patch)
tree05bd362e896c2106090174b1725278a2156a248d /drivers/net/ethernet/cavium/Kconfig
parentd9dca9cb266d4a62b36e3150e6a48daf1968471f (diff)
net: thunderx: add 64-bit dependency
The thunderx ethernet driver fails to build on architectures that do not have an atomic readq() and writeq() function for 64-bit PCI bus access: drivers/net/ethernet/cavium/thunder/thunder_bgx.c: In function 'bgx_reg_read': include/asm-generic/io.h:195:23: error: implicit declaration of function 'readq' [-Werror=implicit-function-declaration] It seems impossible to get this driver to work on most 32-bit hardware, so it's better to add an explicit dependency, in order to let us keep building 'allmodconfig' kernels on all architectures. As the driver is meant for the internal hardware on an arm64 SoC, this is not a problem for usability. Allowing the build on all 64-bit architectures rather than just CONFIG_ARM64 on the other hand means that we get the benefit of build testing on x86. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cavium/Kconfig')
-rw-r--r--drivers/net/ethernet/cavium/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/cavium/Kconfig b/drivers/net/ethernet/cavium/Kconfig
index 6365fb4242be..fc3d8e3ee807 100644
--- a/drivers/net/ethernet/cavium/Kconfig
+++ b/drivers/net/ethernet/cavium/Kconfig
@@ -4,7 +4,7 @@
config NET_VENDOR_CAVIUM
tristate "Cavium ethernet drivers"
- depends on PCI
+ depends on PCI && 64BIT
---help---
Enable support for the Cavium ThunderX Network Interface
Controller (NIC). The NIC provides the controller and DMA