]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/hns: Fix build error
authorYueHaibing <yuehaibing@huawei.com>
Wed, 24 Jul 2019 06:54:43 +0000 (14:54 +0800)
committerDoug Ledford <dledford@redhat.com>
Mon, 29 Jul 2019 16:05:57 +0000 (12:05 -0400)
commitb9d128582718b6b0ed30fd03fd9c221ea2df0e5a
tree64d6464201e4b9cf96e19a66d2296b29b7fc4c7a
parent9f6878ae939c902e583cfdf640395019571d48a2
RDMA/hns: Fix build error

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: Hulk Robot <hulkci@huawei.com>
Fixes: 159bc975aaf1 ("RDMA/hns: Initialize the PCI device for hip08 RoCE")
Fixes: 43c354b0300e ("RDMA/hns: Split hw v1 driver from hns roce driver")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20190724065443.53068-1-yuehaibing@huawei.com
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/Kconfig
drivers/infiniband/hw/hns/Makefile