Skip to content

Commit 669efc7

Browse files
wangxi11davem330
authored andcommitted
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>
1 parent b5f9bd1 commit 669efc7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/net/ethernet/hisilicon/hns3/hns3pf/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Makefile for the HISILICON network device drivers.
44
#
55

6-
ccflags-y := -Idrivers/net/ethernet/hisilicon/hns3
6+
ccflags-y := -I $(srctree)/drivers/net/ethernet/hisilicon/hns3
77

88
obj-$(CONFIG_HNS3_HCLGE) += hclge.o
99
hclge-objs = hclge_main.o hclge_cmd.o hclge_mdio.o hclge_tm.o hclge_mbx.o hclge_err.o hclge_debugfs.o

‎drivers/net/ethernet/hisilicon/hns3/hns3vf/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Makefile for the HISILICON network device drivers.
44
#
55

6-
ccflags-y := -Idrivers/net/ethernet/hisilicon/hns3
6+
ccflags-y := -I $(srctree)/drivers/net/ethernet/hisilicon/hns3
77

88
obj-$(CONFIG_HNS3_HCLGEVF) += hclgevf.o
99
hclgevf-objs = hclgevf_main.o hclgevf_cmd.o hclgevf_mbx.o

0 commit comments

Comments
 (0)