IB/hns: Explicitly include linux/of.h
authorMark Brown <broonie@kernel.org>
Thu, 30 Mar 2017 14:56:01 +0000 (15:56 +0100)
committerDoug Ledford <dledford@redhat.com>
Wed, 5 Apr 2017 17:45:53 +0000 (13:45 -0400)
hns_roce_hw_v1.c uses DT interfaces but relies on implict inclusion of
linux/of.h which means that changes in other headers could break the
build, as happened in -next for arm64 today.  Add an explicit include.

Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_hw_v1.c

index b8111b0c8877b5f4b285f75fc3a0b4880b05653f..5c48dbf43c1a5f9b0caebc92846d443178afa161 100644 (file)
@@ -33,6 +33,7 @@
 #include <linux/platform_device.h>
 #include <linux/acpi.h>
 #include <linux/etherdevice.h>
+#include <linux/of.h>
 #include <rdma/ib_umem.h>
 #include "hns_roce_common.h"
 #include "hns_roce_device.h"