aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDoug Ledford <dledford@redhat.com>2017-07-28 15:17:18 -0400
committerDoug Ledford <dledford@redhat.com>2017-07-28 15:17:18 -0400
commitecd840ff9b793ac60e3e6658414525535349a17b (patch)
tree1d1e0301de74ff28c691f3e293a854643277687b /drivers
parentIB/hns: fix semicolon.cocci warnings (diff)
downloadlinux-dev-ecd840ff9b793ac60e3e6658414525535349a17b.tar.xz
linux-dev-ecd840ff9b793ac60e3e6658414525535349a17b.zip
RDMA/hns: fix build regression
The 0day build system flags implicit includes as errors. A patch from Matan Barak to allow hns_roce, an aarch64 specific RDMA driver, to be built on other arches, but it resulted in build regressions. The problem is that hns_roce_device.h needs a definition for __raw_writeq but did not have an include to provide it. Add <linux/io.h> as an include to resolve the issue. Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/infiniband/hw/hns/hns_roce_device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_device.h b/drivers/infiniband/hw/hns/hns_roce_device.h
index e493a61e14e1..aeef2adf1a45 100644
--- a/drivers/infiniband/hw/hns/hns_roce_device.h
+++ b/drivers/infiniband/hw/hns/hns_roce_device.h
@@ -33,6 +33,7 @@
#ifndef _HNS_ROCE_DEVICE_H
#define _HNS_ROCE_DEVICE_H
+#include <linux/io.h>
#include <rdma/ib_verbs.h>
#define DRV_NAME "hns_roce"