Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e89bf462 authored by Matan Barak's avatar Matan Barak Committed by Doug Ledford
Browse files

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: default avatarMatan Barak <matanb@mellanox.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 3c7f67d1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
config INFINIBAND_HNS
	tristate "HNS RoCE Driver"
	depends on NET_VENDOR_HISILICON
	depends on ARM64 && HNS && HNS_DSAF && HNS_ENET
	depends on (ARM64 || COMPILE_TEST) && 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.
+1 −0
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@
 */

#include <linux/platform_device.h>
#include <linux/vmalloc.h>
#include "hns_roce_device.h"

int hns_roce_bitmap_alloc(struct hns_roce_bitmap *bitmap, unsigned long *obj)
+1 −0
Original line number Diff line number Diff line
@@ -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"