eth: fbnic: add CONFIG_PTP_1588_CLOCK_OPTIONAL dependency
Subsystems (3)
PATCH 1/1 eth: fbnic: add CONFIG_PTP_1588_CLOCK_OPTIONAL dependency
From: Arnd Bergmann <[email protected]>
fbnic fails to link as built-in when PTP support is in a loadable module:
aarch64-linux-ld: drivers/net/ethernet/meta/fbnic/fbnic_ethtool.o: in function `fbnic_get_ts_info':
fbnic_ethtool.c:(.text+0x428): undefined reference to `ptp_clock_index'
aarch64-linux-ld: drivers/net/ethernet/meta/fbnic/fbnic_time.o: in function `fbnic_time_start':
fbnic_time.c:(.text+0x820): undefined reference to `ptp_schedule_worker'
aarch64-linux-ld: drivers/net/ethernet/meta/fbnic/fbnic_time.o: in function `fbnic_ptp_setup':
fbnic_time.c:(.text+0xa68): undefined reference to `ptp_clock_register'
Add the appropriate dependency to enforce this.
--- drivers/net/ethernet/meta/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/meta/Kconfig +1 -0
@@ -23,6 +23,7 @@ config FBNIC depends on !S390 depends on MAX_SKB_FRAGS < 22 depends on PCI_MSI + depends on PTP_1588_CLOCK_OPTIONAL select NET_DEVLINK select PAGE_POOL select PHYLINK
Signature · 1 line
2.39.5
Quoted 12 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
fbnic fails to link as built-in when PTP support is in a loadable module:
aarch64-linux-ld:
drivers/net/ethernet/meta/fbnic/fbnic_ethtool.o: in function `fbnic_get_ts_info':
fbnic_ethtool.c:(.text+0x428): undefined reference to `ptp_clock_index'
aarch64-linux-ld:drivers/net/ethernet/meta/fbnic/fbnic_time.o: in function `fbnic_time_start':
fbnic_time.c:(.text+0x820): undefined reference to `ptp_schedule_worker'
aarch64-linux-ld:drivers/net/ethernet/meta/fbnic/fbnic_time.o: in function `fbnic_ptp_setup':
fbnic_time.c:(.text+0xa68): undefined reference to `ptp_clock_register'
Quoted 4 lines
Add the appropriate dependency to enforce this.
Fixes 6a2b3ede9543 ("eth: fbnic: add RX packets timestamping support")Signed-off-by Arnd Bergmann <[email protected]>
Thanks!
This patch was applied to netdev/net-next.git (main) by Andrew Lunn <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Andrew Lunn <[email protected]>:
Quoted 5 lines · On Wed, 16 Oct 2024 06:22:58 +0000 you wrote:
From: Arnd Bergmann <[email protected]>
fbnic fails to link as built-in when PTP support is in a loadable module:
Quoted 8 lines
aarch64-linux-ld:
drivers/net/ethernet/meta/fbnic/fbnic_ethtool.o: in function `fbnic_get_ts_info':
fbnic_ethtool.c:(.text+0x428): undefined reference to `ptp_clock_index'
aarch64-linux-ld:drivers/net/ethernet/meta/fbnic/fbnic_time.o: in function `fbnic_time_start':
fbnic_time.c:(.text+0x820): undefined reference to `ptp_schedule_worker'
aarch64-linux-ld:drivers/net/ethernet/meta/fbnic/fbnic_time.o: in function `fbnic_ptp_setup':
fbnic_time.c:(.text+0xa68): undefined reference to `ptp_clock_register'[...]
Here is the summary with links:
- eth: fbnic: add CONFIG_PTP_1588_CLOCK_OPTIONAL dependency
https://git.kernel.org/netdev/net-next/c/d3296a9d0bc2
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html