ethtool: reformat kerneldoc for struct ethtool_fec_stats
Subsystems (3)
PATCH 1/1 ethtool: reformat kerneldoc for struct ethtool_fec_stats
The kerneldoc comment for struct ethtool_fec_stats attempts to describe the "total" and "lanes" fields of the ethtool_fec_stat substructure in a way leading to these warnings:
./include/linux/ethtool.h:424: warning: Excess struct member 'lane' description in 'ethtool_fec_stats' ./include/linux/ethtool.h:424: warning: Excess struct member 'total' description in 'ethtool_fec_stats'
Reformat the comment to retain the information while eliminating the warnings.
--- include/linux/ethtool.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
include/linux/ethtool.h +4 -2
@@ -409,8 +409,10 @@ struct ethtool_pause_stats {* not entire FEC data blocks. This is a non-standard statistic. * Reported to user space as %ETHTOOL_A_FEC_STAT_CORR_BITS. * -* @lane: per-lane/PCS-instance counts as defined by the standard -* @total: error counts for the entire port, for drivers incapable of reporting +* For each of the above fields, the two substructure members are: +* +* - @lanes: per-lane/PCS-instance counts as defined by the standard +* - @total: error counts for the entire port, for drivers incapable of reporting * per-lane stats * * Drivers should fill in either only total or per-lane statistics, core
Signature · 1 line
2.43.0
Quoted 11 lines · Jonathan Corbet
The kerneldoc comment for struct
ethtool_fec_statsattempts to describe the "total" and "lanes" fields of theethtool_fec_statsubstructure in a way leading to these warnings:
./include/linux/ethtool.h:424: warning: Excess struct member 'lane' description in 'ethtool_fec_stats'./include/linux/ethtool.h:424: warning: Excess struct member 'total' description in 'ethtool_fec_stats'Reformat the comment to retain the information while eliminating the warnings.
Signed-off-by Jonathan Corbet <[email protected]>
Quoted 21 lines
--- include/linux/ethtool.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)include/linux/ethtool.h +4
-2@@ -409,8 +409,10 @@ struct ethtool_pause_stats {* not entire FEC data blocks. This is a non-standard statistic. * Reported to user space as %ETHTOOL_A_FEC_STAT_CORR_BITS. * -* @lane: per-lane/PCS-instance counts as defined by the standard -* @total: error counts for the entire port, for drivers incapable of reporting +* For each of the above fields, the two substructure members are: +* +* - @lanes: per-lane/PCS-instance counts as defined by the standard +* - @total: error counts for the entire port, for drivers incapable of reporting * per-lane stats * * Drivers should fill in either only total or per-lane statistics, core
Signature · 3 lines
#Randy https://people.kernel.org/tglx/notes-about-netiquette https://subspace.kernel.org/etiquette.html
This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:
Quoted 8 lines · On Tue, 19 Dec 2023 16:55:31 -0700 you wrote:
The kerneldoc comment for struct
ethtool_fec_statsattempts to describe the "total" and "lanes" fields of theethtool_fec_statsubstructure in a way leading to these warnings:
./include/linux/ethtool.h:424: warning: Excess struct member 'lane' description in 'ethtool_fec_stats'./include/linux/ethtool.h:424: warning: Excess struct member 'total' description in 'ethtool_fec_stats'[...]
Here is the summary with links:
- [net] ethtool: reformat kerneldoc for struct ethtool_fec_stats
https://git.kernel.org/netdev/net-next/c/1271ca00aa7f
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html