diff mbox

IB/hns: Explicitly include linux/of.h

Message ID 20170330145601.29765-1-broonie@kernel.org (mailing list archive)
State Accepted
Headers show

Commit Message

Mark Brown March 30, 2017, 2:56 p.m. UTC
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>
---
 drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Doug Ledford April 5, 2017, 5:51 p.m. UTC | #1
On Thu, 2017-03-30 at 15:56 +0100, Mark Brown wrote:
> 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>

Applied, thanks.
diff mbox

Patch

diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v1.c b/drivers/infiniband/hw/hns/hns_roce_hw_v1.c
index ec68f56e8ee5..0f7e85c7b70b 100644
--- a/drivers/infiniband/hw/hns/hns_roce_hw_v1.c
+++ b/drivers/infiniband/hw/hns/hns_roce_hw_v1.c
@@ -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"