Skip to contentSkip to conversation

net: phy: fixed warning: Function parameter not described

PATCH Applied Luo Jie 5 participants 5 messages Oct 26, 2021

Subsystems (3)
lore
Share & tools
lore

Luo Jie

author
#0 lore raw

PATCH 1/1 net: phy: fixed warning: Function parameter not described

Fixed warning: Function parameter or member 'enable' not described in 'genphy_c45_fast_retrain'

---
 drivers/net/phy/phy-c45.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/phy/phy-c45.c +1 -0
index b01180e1f578..db709d30bf84 100644
@@ -614,6 +614,7 @@ EXPORT_SYMBOL_GPL(genphy_c45_loopback);
 /**
  * genphy_c45_fast_retrain - configure fast retrain registers
  * @phydev: target phy_device struct
+ * @enable: enable fast retrain or not
  *
  * Description: If fast-retrain is enabled, we configure PHY as
  *   advertising fast retrain capable and THP Bypass Request, then
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 13 lines · Luo Jie

Fixed warning: Function parameter or member 'enable' not described in 'genphy_c45_fast_retrain'

---
 drivers/net/phy/phy-c45.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/phy/phy-c45.c +0 -0
index b01180e1f578..db709d30bf84 100644

drivers/net/phy/phy-c45.c EXPORT_SYMBOL_GPL(genphy_c45_loopback); · line 620

Quoted 7 lines
drivers/net/phy/phy-c45.c +1 -0
@@ -614,6 +614,7 @@ EXPORT_SYMBOL_GPL(genphy_c45_loopback);
 /**
  * genphy_c45_fast_retrain - configure fast retrain registers
  * @phydev: target phy_device struct
+ * @enable: enable fast retrain or not
  *
  * Description: If fast-retrain is enabled, we configure PHY as
  *   advertising fast retrain capable and THP Bypass Request, then

Patch itself is fine, but I wonder why we've started getting
Description: prefixes on new functions in this file whereas the bulk of the descriptions in the file do not use that prefix.

In any case, for this patch:

Thanks.

Signature · 2 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!
#2 lore raw
Quoted 9 lines · Russell King (Oracle)
Quoted 8 lines · Luo Jie

Fixed warning: Function parameter or member 'enable' not described in 'genphy_c45_fast_retrain'

---
  drivers/net/phy/phy-c45.c | 1 +
  1 file changed, 1 insertion(+)
Quoted 15 lines

drivers/net/phy/phy-c45.c EXPORT_SYMBOL_GPL(genphy_c45_loopback); · line 620

Quoted 12 lines
drivers/net/phy/phy-c45.c +1 -0
index b01180e1f578..db709d30bf84 100644
@@ -614,6 +614,7 @@ EXPORT_SYMBOL_GPL(genphy_c45_loopback);
  /**
   * genphy_c45_fast_retrain - configure fast retrain registers
   * @phydev: target phy_device struct
+ * @enable: enable fast retrain or not
   *
   * Description: If fast-retrain is enabled, we configure PHY as
   *   advertising fast retrain capable and THP Bypass Request, then

Patch itself is fine, but I wonder why we've started getting
Description: prefixes on new functions in this file whereas the bulk of the descriptions in the file do not use that prefix.

Thanks Russell for the review. i see the prefix "Description" is also used in the

file phy.c.

Quoted 6 lines

In any case, for this patch:

Thanks.

#4 lore raw
In reply to Luo Jie
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:

Hello:

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

Quoted 7 lines · On Tue, 26 Oct 2021 18:29:57 +0800 you wrote:

Fixed warning: Function parameter or member 'enable' not described in 'genphy_c45_fast_retrain'

---
 drivers/net/phy/phy-c45.c | 1 +
 1 file changed, 1 insertion(+)

Here is the summary with links:
- net: phy: fixed warning: Function parameter not described

    https://git.kernel.org/netdev/net-next/c/06338ceff925

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html