Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3974738img; Mon, 25 Mar 2019 23:56:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqzpBbjE141HakvRujyL19NobYfPhwdMpvhfCtMQi5Qlw/TBj6RDC2P4X2rf15OXRMLtuZei X-Received: by 2002:a17:902:29aa:: with SMTP id h39mr29541432plb.190.1553583374561; Mon, 25 Mar 2019 23:56:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553583374; cv=none; d=google.com; s=arc-20160816; b=WJ1SJlIcuDjbhbqrsAfCQQDGTV/Uu9vTn7BWPT20NqNaVbALKn6nSGtIPcQds/ImwJ +6JCPH5i2ebz70gLmF4APG7++oCNDumzNl+FJp/qp+5UNUzVb2i0zLaT/P3hoNLzyO5k 5W7IMHvG1cJl7dObHn70TjfaiNtmzrmzWtua6JDw+knbZ67yr0SeeN0aMWVh86tdZvul DWpbBKa5iV1hN1X91yaGvsVG7wb+m2b1pRbGJWRUw65Voz6ZMIyI/51IBioKy20Yj4KS IE0xWxVEClRRP+5JiW3bou20JPuHtQoa6mwVQrJ/ACrNqkUsXegX9FDWr/ia+tJUMMrw a1Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=y6qc5ZwecCMdjgA1Xk/V4Hg0EdWwnvjk6FGQ5Ec4Iro=; b=UtWUTbhRTmj8cJ/+vngYw8DXxY23tnNePBwPJFQSY9ew0ycEYOWXw/WBEr1IU7O0Yb ayD6pWsAS0DWmX8QiA9iPFjEWTkYjAXaTHMKkiLi/FxPBxlLeH5F+H7D0exYbEw6d/DI zKKmPKLZ8eqUiFP4wqI0TgAFUjWXcsstRM7czKvuPIyKBPteyzmV3QKM6Zo1i3mW0P11 fYyFmDusgWAxMFzDVO/8/AUBxQ0HzUE3cYVQd7IGjqY/jMoHo4fMp2iGCKu/Tup38S8B 62o+npGtYlKiZpuH71AafZTcvLpFt6oPYdD9y6b2jNTh3Tgvs3Bny0iB96+GACYbtfzc BQ4Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d3si15357136pgd.147.2019.03.25.23.55.59; Mon, 25 Mar 2019 23:56:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731502AbfCZGyA (ORCPT + 99 others); Tue, 26 Mar 2019 02:54:00 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:40164 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730918AbfCZGx7 (ORCPT ); Tue, 26 Mar 2019 02:53:59 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 41411242BF78D8EB364B; Tue, 26 Mar 2019 14:53:57 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.408.0; Tue, 26 Mar 2019 14:53:49 +0800 From: Xi Wang To: CC: , , , , , Xi Wang Subject: [PATCH net] net: hns3: fix compile error Date: Tue, 26 Mar 2019 14:53:49 +0800 Message-ID: <1553583229-121323-1-git-send-email-wangxi11@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently, the rules for configuring search paths in Kbuild have changed, this will lead some erros when compiling hns3 with the following command: make O=DIR M=drivers/net/ethernet/hisilicon/hns3 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c:11:10: fatal error: hnae3.h: No such file or directory This patch fix it by adding $(srctree)/ prefix to the serach paths. Signed-off-by: Xi Wang --- drivers/net/ethernet/hisilicon/hns3/hns3pf/Makefile | 2 +- drivers/net/ethernet/hisilicon/hns3/hns3vf/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/Makefile b/drivers/net/ethernet/hisilicon/hns3/hns3pf/Makefile index fffe8c1..0fb61d4 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/Makefile +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/Makefile @@ -3,7 +3,7 @@ # Makefile for the HISILICON network device drivers. # -ccflags-y := -Idrivers/net/ethernet/hisilicon/hns3 +ccflags-y := -I $(srctree)/drivers/net/ethernet/hisilicon/hns3 obj-$(CONFIG_HNS3_HCLGE) += hclge.o hclge-objs = hclge_main.o hclge_cmd.o hclge_mdio.o hclge_tm.o hclge_mbx.o hclge_err.o hclge_debugfs.o diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3vf/Makefile b/drivers/net/ethernet/hisilicon/hns3/hns3vf/Makefile index fb93bbd..6193f8f 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3vf/Makefile +++ b/drivers/net/ethernet/hisilicon/hns3/hns3vf/Makefile @@ -3,7 +3,7 @@ # Makefile for the HISILICON network device drivers. # -ccflags-y := -Idrivers/net/ethernet/hisilicon/hns3 +ccflags-y := -I $(srctree)/drivers/net/ethernet/hisilicon/hns3 obj-$(CONFIG_HNS3_HCLGEVF) += hclgevf.o hclgevf-objs = hclgevf_main.o hclgevf_cmd.o hclgevf_mbx.o \ No newline at end of file -- 2.8.1