* [PATCH net-next] net: lan966x: Fix when CONFIG_PTP_1588_CLOCK is compiled as module
@ 2022-02-12 20:45 Horatiu Vultur
2022-02-13 16:00 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Horatiu Vultur @ 2022-02-12 20:45 UTC (permalink / raw)
To: netdev, linux-kernel
Cc: UNGLinuxDriver, davem, kuba, richardcochran, Horatiu Vultur,
kernel test robot
When CONFIG_PTP_1588_CLOCK is compiled as a module, then the linking of
the lan966x fails because it can't find references to the following
functions 'ptp_clock_index', 'ptp_clock_register' and
'ptp_clock_unregister'
The fix consists in adding CONFIG_PTP_1588_CLOCK_OPTIONAL as a
dependency for the driver.
Fixes: d096459494a887 ("net: lan966x: Add support for ptp clocks")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
---
drivers/net/ethernet/microchip/lan966x/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/microchip/lan966x/Kconfig b/drivers/net/ethernet/microchip/lan966x/Kconfig
index ac273f84b69e..4241ff0e5098 100644
--- a/drivers/net/ethernet/microchip/lan966x/Kconfig
+++ b/drivers/net/ethernet/microchip/lan966x/Kconfig
@@ -1,5 +1,6 @@
config LAN966X_SWITCH
tristate "Lan966x switch driver"
+ depends on PTP_1588_CLOCK_OPTIONAL
depends on HAS_IOMEM
depends on OF
depends on NET_SWITCHDEV
--
2.33.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] net: lan966x: Fix when CONFIG_PTP_1588_CLOCK is compiled as module
2022-02-12 20:45 [PATCH net-next] net: lan966x: Fix when CONFIG_PTP_1588_CLOCK is compiled as module Horatiu Vultur
@ 2022-02-13 16:00 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-02-13 16:00 UTC (permalink / raw)
To: Horatiu Vultur
Cc: netdev, linux-kernel, UNGLinuxDriver, davem, kuba, richardcochran,
lkp
Hello:
This patch was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:
On Sat, 12 Feb 2022 21:45:44 +0100 you wrote:
> When CONFIG_PTP_1588_CLOCK is compiled as a module, then the linking of
> the lan966x fails because it can't find references to the following
> functions 'ptp_clock_index', 'ptp_clock_register' and
> 'ptp_clock_unregister'
>
> The fix consists in adding CONFIG_PTP_1588_CLOCK_OPTIONAL as a
> dependency for the driver.
>
> [...]
Here is the summary with links:
- [net-next] net: lan966x: Fix when CONFIG_PTP_1588_CLOCK is compiled as module
https://git.kernel.org/netdev/net-next/c/1da52b0e4724
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-13 16:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-12 20:45 [PATCH net-next] net: lan966x: Fix when CONFIG_PTP_1588_CLOCK is compiled as module Horatiu Vultur
2022-02-13 16:00 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox