Skip to contentSkip to conversation

net: stmmac: remove stmmac_hw_setup() excess documentation parameter

PATCH Applied Russell King (Oracle) 3 participants 3 messages Sep 29, 2025 – Oct 20, 2025

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: stmmac: remove stmmac_hw_setup() excess documentation parameter

The kernel build bot reports:

Warning: drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:3438 Excess function parameter 'ptp_register' description in 'stmmac_hw_setup'

Fix it.

Fixes 98d8ea566b85 ("net: stmmac: move timestamping/ptp init to stmmac_hw_setup() caller")
---
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +0 -1
index be064f240895..650d75b73e0b 100644
@@ -3400,7 +3400,6 @@ static void stmmac_safety_feat_configuration(struct stmmac_priv *priv)
 /**
  * stmmac_hw_setup - setup mac in a usable state.
  *  @dev : pointer to the device structure.
- *  @ptp_register: register PTP if set
  *  Description:
  *  this is the main function to setup the HW in a usable state because the
  *  dma engine is reset, the core registers are configured (e.g. AXI,
Signature · 1 line
2.47.3
#1 lore raw
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 4 lines · On Mon, 29 Sep 2025 08:43:55 +0100 you wrote:

The kernel build bot reports:

Warning: drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:3438 Excess function parameter 'ptp_register' description in 'stmmac_hw_setup'

Quoted 8 lines

Fix it.

Fixes 98d8ea566b85 ("net: stmmac: move timestamping/ptp init to stmmac_hw_setup() caller")

[...]

Here is the summary with links:
- [net-next] net: stmmac: remove stmmac_hw_setup() excess documentation parameter

    https://git.kernel.org/netdev/net-next/c/6d3728d424a2

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Reviewed-by on v1 1/1
#2 lore raw
In reply to Russell King (Oracle)
Quoted 10 lines · Russell King (Oracle)

The kernel build bot reports:

Warning: drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:3438 Excess function parameter 'ptp_register' description in 'stmmac_hw_setup'

Fix it.

Fixes 98d8ea566b85 ("net: stmmac: move timestamping/ptp init to stmmac_hw_setup() caller")

Andrew