diff mbox series

[net-next] net: lan966x: Fix when CONFIG_PTP_1588_CLOCK is compiled as module

Message ID 20220212204544.972787-1-horatiu.vultur@microchip.com (mailing list archive)
State Accepted
Commit 1da52b0e4724792cff7ff0a5ab4ee547bcaee11b
Delegated to: Netdev Maintainers
Headers show
Series [net-next] net: lan966x: Fix when CONFIG_PTP_1588_CLOCK is compiled as module | expand

Checks

Context Check Description
netdev/tree_selection success Clearly marked for net-next
netdev/fixes_present success Fixes tag not required for -next series
netdev/subject_prefix success Link
netdev/cover_letter success Single patches do not need cover letters
netdev/patch_count success Link
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 0 this patch: 0
netdev/cc_maintainers success CCed 6 of 6 maintainers
netdev/build_clang success Errors and warnings before: 0 this patch: 0
netdev/module_param success Was 0 now: 0
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/verify_fixes success Fixes tag looks correct
netdev/build_allmodconfig_warn success Errors and warnings before: 0 this patch: 0
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 6 lines checked
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0

Commit Message

Horatiu Vultur Feb. 12, 2022, 8:45 p.m. UTC
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(+)

Comments

patchwork-bot+netdevbpf@kernel.org Feb. 13, 2022, 4 p.m. UTC | #1
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!
diff mbox series

Patch

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