summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatan Barak <matanb@mellanox.com>2017-07-25 17:29:06 +0300
committerDoug Ledford <dledford@redhat.com>2017-08-14 11:16:53 -0400
commit3e5f0881f17525e3b49835947a5e0cf2d681b1e2 (patch)
tree874ee8487cb5a86c581dd8402f9d44566617a1cd
parent8ccf098104dcc6fb9036d760f79016d5227a4437 (diff)
downloadop-kernel-dev-3e5f0881f17525e3b49835947a5e0cf2d681b1e2.zip
op-kernel-dev-3e5f0881f17525e3b49835947a5e0cf2d681b1e2.tar.gz
IB/hns: Avoid compile test under non 64bit environments
The hns driver uses __raw_writeq which is only defined in 64BIT environments. Trying to compile the driver in a 32BIT environment results in errors. Only COMPILE_TEST when 64BIT is defined. Fixes: 7d1b6a678e0b ("IB/hns: Support compile test for hns RoCE driver") Signed-off-by: Matan Barak <matanb@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r--drivers/infiniband/hw/hns/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/hns/Kconfig b/drivers/infiniband/hw/hns/Kconfig
index cbe6b51..61c93bb 100644
--- a/drivers/infiniband/hw/hns/Kconfig
+++ b/drivers/infiniband/hw/hns/Kconfig
@@ -1,7 +1,7 @@
config INFINIBAND_HNS
tristate "HNS RoCE Driver"
depends on NET_VENDOR_HISILICON
- depends on (ARM64 || COMPILE_TEST) && HNS && HNS_DSAF && HNS_ENET
+ depends on (ARM64 || (COMPILE_TEST && 64BIT)) && HNS && HNS_DSAF && HNS_ENET
---help---
This is a RoCE/RDMA driver for the Hisilicon RoCE engine. The engine
is used in Hisilicon Hi1610 and more further ICT SoC.
OpenPOWER on IntegriCloud