]> asedeno.scripts.mit.edu Git - linux.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)
commit669efc76b317b3aa550ffbf0b79d064cb00a5f96
treecf5b2d20cab0a262b6cddc897562ad2c410926e5
parentb5f9bd15b88563b55a99ed588416881367a0ce5f
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