Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753949AbdDDNjo (ORCPT ); Tue, 4 Apr 2017 09:39:44 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:36726 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752165AbdDDNjm (ORCPT ); Tue, 4 Apr 2017 09:39:42 -0400 From: Tobias Regnery To: oulijun@huawei.com, xavier.huwei@huawei.com, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Tobias Regnery Subject: [PATCH] IB/hns: include linux/of.h to fix build failure Date: Tue, 4 Apr 2017 15:36:37 +0200 Message-Id: <20170404133637.18643-1-tobias.regnery@gmail.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 982 Lines: 28 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. Signed-off-by: Tobias Regnery --- This is against next-20170404 drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 1 + 1 file changed, 1 insertion(+) 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 #include #include +#include #include #include "hns_roce_common.h" #include "hns_roce_device.h" -- 2.11.0