linux_dsm_epyc7002/drivers/net/ethernet/cavium/common
YueHaibing a7d40cbb24 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: def2fbffe6 ("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>
2020-04-02 07:01:31 -07:00
..
cavium_ptp.c net: cavium: Register driver with PCI subsys IDs 2020-03-02 11:13:58 -08:00
cavium_ptp.h net: cavium: Fix build errors due to 'imply CAVIUM_PTP' 2020-04-02 07:01:31 -07:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00