IB/hns: include linux/of.h to fix build failure
Subsystems (2)
PATCH 1/1 IB/hns: include linux/of.h to fix build failure
I see the following build error in an arm64 randconfig build:
drivers/infiniband/hw/hns/hns_roce_hw_v1.c: In function 'hns_roce_v1_reset':drivers/infiniband/hw/hns/hns_roce_hw_v1.c:1384:15: error: implicit declaration of function 'of_parse_phandle' [-Werror=implicit-function-declaration]
Fix this by including linux/of.h directly.
---
This is against next-20170404
drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 1 + 1 file changed, 1 insertion(+)
drivers/infiniband/hw/hns/hns_roce_hw_v1.c +1 -0
@@ -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"
Signature · 6 lines
2.11.0 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 20 lines · Tobias Regnery
I see the following build error in an arm64 randconfig build:
drivers/infiniband/hw/hns/hns_roce_hw_v1.c: In function 'hns_roce_v1_reset':drivers/infiniband/hw/hns/hns_roce_hw_v1.c:1384:15: error: implicit declaration of function 'of_parse_phandle' [-Werror=implicit-function-declaration]Fix this by including
linux/of.hdirectly.Signed-off-by Tobias Regnery <[email protected]>---
This is against next-20170404drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 1 + 1 file changed, 1 insertion(+)drivers/infiniband/hw/hns/hns_roce_hw_v1.c +0
-0
drivers/infiniband/hw/hns/hns_roce_hw_v1.c line 39
Quoted 7 lines
drivers/infiniband/hw/hns/hns_roce_hw_v1.c +1
-0@@ -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"
Hi Tobias, I already picked up this same change from another person. Thanks.
Signature · 3 lines
Doug Ledford <[email protected]> GPG Key ID: B826A3330E572FDD Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD