]> git.baikalelectronics.ru Git - kernel.git/commit
net: cavium: Fix build errors due to 'imply CAVIUM_PTP'
authorYueHaibing <yuehaibing@huawei.com>
Thu, 2 Apr 2020 13:23:44 +0000 (21:23 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Apr 2020 14:01:31 +0000 (07:01 -0700)
commit6f49f69902ca2713dabf40a00b1df90e04e5f054
treebd7acb93c88786ae0e6a213ab0c6ff53033c508d
parent3ac070bb70d12d99ce9fc828e41dcfa4c58d9f39
net: cavium: Fix build errors due to 'imply CAVIUM_PTP'

If CAVIUM_PTP is m and THUNDER_NIC_VF is y, build fails:

drivers/net/ethernet/cavium/thunder/nicvf_main.o: In function 'nicvf_remove':
nicvf_main.c:(.text+0x1f0): undefined reference to 'cavium_ptp_put'
drivers/net/ethernet/cavium/thunder/nicvf_main.o: In function `nicvf_probe':
nicvf_main.c:(.text+0x557c): undefined reference to 'cavium_ptp_get'

THUNDER_NIC_VF imply CAVIUM_PTP, which allow the config now,
Use IS_REACHABLE() to avoid the vmlinux link error for this case.

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: 2f5a0f65c9f7 ("kconfig: allow symbols implied by y to become m")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/common/cavium_ptp.h