]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix compile error
authorXi Wang <wangxi11@huawei.com>
Tue, 26 Mar 2019 06:53:49 +0000 (14:53 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Mar 2019 05:47:58 +0000 (22:47 -0700)
commit4a822d71a6572fb1990be22dd53ea90c1eb0ade9
treecf5b2d20cab0a262b6cddc897562ad2c410926e5
parent2d72bda76b3f01c05322c6767f2e9278e2bf0dd6
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>
drivers/net/ethernet/hisilicon/hns3/hns3pf/Makefile
drivers/net/ethernet/hisilicon/hns3/hns3vf/Makefile