Skip to contentSkip to conversation

phylink: <linux/phylink.h>: fix function prototype kernel-doc warning

PATCH Applied Randy Dunlap 3 participants 5 messages Aug 16, 2020 – Aug 17, 2020

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

PATCH 1/1 phylink: <linux/phylink.h>: fix function prototype kernel-doc warning

Fix a kernel-doc warning for the pcs_config() function prototype:

../include/linux/phylink.h:406: warning: Excess function parameter 'permit_pause_to_mac' description in 'pcs_config'

Fixes 7137e18f6f88 ("net: phylink: add struct phylink_pcs")
Cc Russell King <[email protected]>
Cc David S. Miller <[email protected]>
---
 include/linux/phylink.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/linux/phylink.h +2 -1
@@ -402,7 +402,8 @@ void pcs_get_state(struct phylink_pcs *p
  * For most 10GBASE-R, there is no advertisement.
  */
 int pcs_config(struct phylink_pcs *pcs, unsigned int mode,
-	       phy_interface_t interface, const unsigned long *advertising);
+	       phy_interface_t interface, const unsigned long *advertising,
+	       bool permit_pause_to_mac);
 
 /**
  * pcs_an_restart() - restart 802.3z BaseX autonegotiation
maintainer
#1 lore raw

From: Randy Dunlap <[email protected]>
Date: Sun, 16 Aug 2020 15:25:49 -0700

Quoted 6 lines

Fix a kernel-doc warning for the pcs_config() function prototype:

../include/linux/phylink.h:406: warning: Excess function parameter 'permit_pause_to_mac' description in 'pcs_config'

Fixes 7137e18f6f88 ("net: phylink: add struct phylink_pcs")

There's no definition of this function anywhere. Maybe just remove all of this?

#2 lore raw
Quoted 5 lines · David Miller

From: Randy Dunlap <[email protected]>
Date: Sun, 16 Aug 2020 15:25:49 -0700

Quoted 2 lines

Fix a kernel-doc warning for the pcs_config() function prototype:

Quoted 8 lines
Quoted 4 lines

../include/linux/phylink.h:406: warning: Excess function parameter 'permit_pause_to_mac' description in 'pcs_config'

Fixes 7137e18f6f88 ("net: phylink: add struct phylink_pcs")

There's no definition of this function anywhere. Maybe just remove all of this?

It's for documentation purposes...

It's a "method" (callback) function.

Signature · 1 line
~Randy
maintainer Applied
#3 lore raw

From: Randy Dunlap <[email protected]>
Date: Sun, 16 Aug 2020 22:43:54 -0700

Quoted 11 lines · David Miller
Quoted 10 lines

From: Randy Dunlap <[email protected]>
Date: Sun, 16 Aug 2020 15:25:49 -0700

Quoted 6 lines

Fix a kernel-doc warning for the pcs_config() function prototype:

../include/linux/phylink.h:406: warning: Excess function parameter 'permit_pause_to_mac' description in 'pcs_config'

Fixes 7137e18f6f88 ("net: phylink: add struct phylink_pcs")
Quoted 7 lines
Quoted 3 lines

There's no definition of this function anywhere. Maybe just remove all of this?

It's for documentation purposes...

It's a "method" (callback) function.

I see, that's an unfortunate shortcoming of kerneldoc.

Applied, thanks.

#4 lore raw
In reply to David Miller
Quoted 5 lines · David Miller

From: Randy Dunlap <[email protected]>
Date: Sun, 16 Aug 2020 15:25:49 -0700

Quoted 2 lines

Fix a kernel-doc warning for the pcs_config() function prototype:

Quoted 7 lines
Quoted 4 lines

../include/linux/phylink.h:406: warning: Excess function parameter 'permit_pause_to_mac' description in 'pcs_config'

Fixes 7137e18f6f88 ("net: phylink: add struct phylink_pcs")

There's no definition of this function anywhere. Maybe just remove all of this?

This is kerneldoc documentation for the PCS methods - there's no other way to document the method parameters than to use "fake" function prototypes.

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!