aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns3/hns3vf/Makefile
diff options
context:
space:
mode:
authorXi Wang <wangxi11@huawei.com>2019-03-26 14:53:49 +0800
committerDavid S. Miller <davem@davemloft.net>2019-03-27 22:47:58 -0700
commit669efc76b317b3aa550ffbf0b79d064cb00a5f96 (patch)
treecf5b2d20cab0a262b6cddc897562ad2c410926e5 /drivers/net/ethernet/hisilicon/hns3/hns3vf/Makefile
parentila: Fix rhashtable walker list corruption (diff)
downloadlinux-dev-669efc76b317b3aa550ffbf0b79d064cb00a5f96.tar.xz
linux-dev-669efc76b317b3aa550ffbf0b79d064cb00a5f96.zip
net: hns3: fix compile error
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 <wangxi11@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/hisilicon/hns3/hns3vf/Makefile2
1 files changed, 1 insertions, 1 deletions
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