• X
    net: hns3: fix compile error · 7e0548e1
    Xi Wang 提交于
    [ 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: NXi Wang <wangxi11@huawei.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    Signed-off-by: NSasha Levin <sashal@kernel.org>
    7e0548e1
Makefile 309 字节