aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hns/hns_roce_mr.c
diff options
context:
space:
mode:
authorMatan Barak <matanb@mellanox.com>2017-06-08 17:23:50 +0300
committerDoug Ledford <dledford@redhat.com>2017-07-28 14:48:26 -0400
commite89bf462b6bece63a60723af88c76dce9dbe6b85 (patch)
treec2c0debd430d08e3b7f8a786b1275fd340a00c13 /drivers/infiniband/hw/hns/hns_roce_mr.c
parentIB/cma: Fix default RoCE type setting (diff)
downloadlinux-dev-e89bf462b6bece63a60723af88c76dce9dbe6b85.tar.xz
linux-dev-e89bf462b6bece63a60723af88c76dce9dbe6b85.zip
IB/hns: Support compile test for hns RoCE driver
Compiling the hns RoCE driver requires ARM architecture. In order to simplify development of IB/core, support compile test. Add the necessary includes for that too. Signed-off-by: Matan Barak <matanb@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to '')
-rw-r--r--drivers/infiniband/hw/hns/hns_roce_mr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_mr.c b/drivers/infiniband/hw/hns/hns_roce_mr.c
index 80fc01ffd8bd..e387360e3780 100644
--- a/drivers/infiniband/hw/hns/hns_roce_mr.c
+++ b/drivers/infiniband/hw/hns/hns_roce_mr.c
@@ -32,6 +32,7 @@
*/
#include <linux/platform_device.h>
+#include <linux/vmalloc.h>
#include <rdma/ib_umem.h>
#include "hns_roce_device.h"
#include "hns_roce_cmd.h"