]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
net: stmmac: remove stmmac_hw_setup() excess documentation parameter
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Mon, 29 Sep 2025 07:43:55 +0000 (08:43 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 30 Sep 2025 01:47:15 +0000 (18:47 -0700)
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.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: 98d8ea566b85 ("net: stmmac: move timestamping/ptp init to stmmac_hw_setup() caller")
Closes: https://lore.kernel.org/oe-kbuild-all/202509290927.svDd6xuw-lkp@intel.com/
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1v38Y7-00000008UCQ-3w27@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

index be064f240895cd1e9642571c59eea3c49487e040..650d75b73e0b0ecd02d35dd5d6a8742d45188c47 100644 (file)
@@ -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,