phylink: <linux/phylink.h>: fix function prototype kernel-doc warning
Subsystems (3)
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'
--- 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
David Miller
maintainerFrom: 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")Signed-off-by Randy Dunlap <[email protected]>
There's no definition of this function anywhere. Maybe just remove all of this?
Quoted 5 lines · David Miller
From: Randy Dunlap <[email protected]>
Date: Sun, 16 Aug 2020 15:25:49 -0700Quoted 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")Signed-off-by Randy Dunlap <[email protected]>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
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 -0700Quoted 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")Signed-off-by Randy Dunlap <[email protected]>
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.
Russell King - ARM Linux admin
maintainerQuoted 5 lines · David Miller
From: Randy Dunlap <[email protected]>
Date: Sun, 16 Aug 2020 15:25:49 -0700Quoted 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")Signed-off-by Randy Dunlap <[email protected]>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!