• YueHaibing's avatar
    RDMA/hns: Fix build error · a07fc0bb
    YueHaibing authored
    If INFINIBAND_HNS_HIP08 is selected and HNS3 is m,
    but INFINIBAND_HNS is y, building fails:
    
    drivers/infiniband/hw/hns/hns_roce_hw_v2.o: In function `hns_roce_hw_v2_exit':
    hns_roce_hw_v2.c:(.exit.text+0xd): undefined reference to `hnae3_unregister_client'
    drivers/infiniband/hw/hns/hns_roce_hw_v2.o: In function `hns_roce_hw_v2_init':
    hns_roce_hw_v2.c:(.init.text+0xd): undefined reference to `hnae3_register_client'
    
    Also if INFINIBAND_HNS_HIP06 is selected and HNS_DSAF
    is m, but INFINIBAND_HNS is y, building fails:
    
    drivers/infiniband/hw/hns/hns_roce_hw_v1.o: In function `hns_roce_v1_reset':
    hns_roce_hw_v1.c:(.text+0x39fa): undefined reference to `hns_dsaf_roce_reset'
    hns_roce_hw_v1.c:(.text+0x3a25): undefined reference to `hns_dsaf_roce_reset'
    Reported-by: default avatarHulk Robot <hulkci@huawei.com>
    Fixes: dd74282d ("RDMA/hns: Initialize the PCI device for hip08 RoCE")
    Fixes: 08805fdb ("RDMA/hns: Split hw v1 driver from hns roce driver")
    Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
    Link: https://lore.kernel.org/r/20190724065443.53068-1-yuehaibing@huawei.comSigned-off-by: default avatarDoug Ledford <dledford@redhat.com>
    a07fc0bb
Kconfig 1.11 KB