Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2535461yba; Mon, 6 May 2019 07:38:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqysL13Ril/htT+wzm/1LBvs0f814tCArMkADp4Cl1GYGaKrva33O9TpTLAHYDSqsuHc4szV X-Received: by 2002:a62:4690:: with SMTP id o16mr33561958pfi.166.1557153531247; Mon, 06 May 2019 07:38:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557153531; cv=none; d=google.com; s=arc-20160816; b=VJvqtHsNArdbPxTHB4hhJOl7gpAJJV4VVI/k0qd17iiB8MTM0SHhqUgdBDXnbpO2Tt XzQXzQeE2pkoDrkJG8LPEk9sWlfKYlFrmQf+6OilrtGexom6l9VfriHBDrcdkVAa7fLW kUSn/Hdtz6968tFM2oN0rdL4/ns+I8mn/zFNcbWl8ykO4UZPpeejYn/VWJsPL5wgBhvZ kE74L1ZLHZE4/xdYS0Fbw9M5e26JdVv9Pb+FdAJDr5UzsAz8t16ylkt20hq1OEFXrKA4 mYa5ImxASZvjiSHK8DTIzw4UbJLsItIpQB9GxLdzEdP9ivvnQ9QHk+RLMdBEUFZ6FXnR jNdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=65xttOLaYAkN/PksSZdffW/6wLtaEiVKQ6bit0Bt2EM=; b=XFJJ93eqHqeDreYMTGf75UrNHwwDTKRKYGmtNEwveASyBi3sXttMRDlSG81t/YtgPl 2S2hy2xPJAOsJHtggeO5HGvzQ/gFhsjkvfraV+sRv3i5z026YaKfQ2vQDPUmxXkTR4F5 JQ/UOFQ1E/L7rKTg0uVSUp3050c6fUws5cbjUV0ggQQRffAFomBihgoaCRraxNRw57RT gnhu15oMjqGlDO9xLSImxclwlMRwsiZIwB6G3RdDwUM7TWiEXvEZbDcjg2Wu7GuVSAep gGudMLDFibJ5A4hduQmNj62E2ddjNfh/evTl8GnmxYBc1Rbb91j6qBwctaCdvcpYcJJn t3aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KSs5uvno; 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 s12si14715100plp.420.2019.05.06.07.38.35; Mon, 06 May 2019 07:38:51 -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; dkim=pass header.i=@kernel.org header.s=default header.b=KSs5uvno; 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 S1727212AbfEFOgk (ORCPT + 99 others); Mon, 6 May 2019 10:36:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:57010 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727188AbfEFOgg (ORCPT ); Mon, 6 May 2019 10:36:36 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E1A7320B7C; Mon, 6 May 2019 14:36:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557153395; bh=IVWKTLJ67r9Fag+JPkcDnWfalbUx2MqvHhQKGS417+s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KSs5uvnop+wqNCPv0ikPOBax8gsYE8Uf1HOAAGNx3gk19fbLczSxnhDoh3J0OzUe3 B6tqJX8Rcg2uQ7RlyDf47I0JGmJXfox0mBWZ+znKAwMLmZvG0rj6OK3MBYyKNlJF2e 9LQQFuakGAtSu65Nu8lpAZpaezPoBCa2Nie4AV8k= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Xi Wang , "David S. Miller" , "Sasha Levin (Microsoft)" Subject: [PATCH 5.0 045/122] net: hns3: fix compile error Date: Mon, 6 May 2019 16:31:43 +0200 Message-Id: <20190506143058.973350300@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190506143054.670334917@linuxfoundation.org> References: <20190506143054.670334917@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 669efc76b317b3aa550ffbf0b79d064cb00a5f96 ] 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 Signed-off-by: David S. Miller Signed-off-by: Sasha Levin (Microsoft) --- 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 fffe8c1c45d3..0fb61d440d3b 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 fb93bbd35845..6193f8fa7cf3 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.20.1