net: phylink: fix sphinx complaint about invalid literal
Subsystems (3)
Jakub Kicinski
maintainerPATCH 1/1 net: phylink: fix sphinx complaint about invalid literal
sphinx complains about the use of "%PHYLINK_PCS_NEG_*":
Documentation/networking/kapi:144: ./include/linux/phylink.h:601: WARNING: Inline literal start-string without end-string. Documentation/networking/kapi:144: ./include/linux/phylink.h:633: WARNING: Inline literal start-string without end-string.
These are not valid symbols so drop the '%' prefix.
Alternatively we could use %PHYLINK_PCS_NEG_\* (escape the *) or use normal literal ``PHYLINK_PCS_NEG_*`` but there is already a handful of un-adorned DEFINE_* in this file.
---
CC: [email protected]
CC: [email protected]
--- include/linux/phylink.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/phylink.h +2 -2
@@ -600,7 +600,7 @@ void pcs_get_state(struct phylink_pcs *pcs,* * The %neg_mode argument should be tested via the phylink_mode_*() family of * functions, or for PCS that set pcs->neg_mode true, should be tested -* against the %PHYLINK_PCS_NEG_* definitions. +* against the PHYLINK_PCS_NEG_* definitions. */ int pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, phy_interface_t interface, const unsigned long *advertising,
@@ -630,7 +630,7 @@ void pcs_an_restart(struct phylink_pcs *pcs);* * The %mode argument should be tested via the phylink_mode_*() family of * functions, or for PCS that set pcs->neg_mode true, should be tested -* against the %PHYLINK_PCS_NEG_* definitions. +* against the PHYLINK_PCS_NEG_* definitions. */ void pcs_link_up (struct phylink_pcs *pcs,unsigned int neg_mode,phy_interface_t interface,int speed,int duplex);
Signature · 1 line
2.41.0
Quoted 14 lines · Jakub Kicinski
include/linux/phylink.h +1
-1@@ -600,7 +600,7 @@ void pcs_get_state(struct phylink_pcs *pcs,* * The %neg_mode argument should be tested via the phylink_mode_*() family of * functions, or for PCS that set pcs->neg_mode true, should be tested -* against the %PHYLINK_PCS_NEG_* definitions. +* against the PHYLINK_PCS_NEG_* definitions. */ int pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, phy_interface_t interface, const unsigned long *advertising,
include/linux/phylink.h void pcs_an_restart(struct phylink_pcs *pcs); · line 636
Quoted 8 lines
include/linux/phylink.h +1
-1@@ -630,7 +630,7 @@ void pcs_an_restart(struct phylink_pcs *pcs);* * The %mode argument should be tested via the phylink_mode_*() family of * functions, or for PCS that set pcs->neg_mode true, should be tested -* against the %PHYLINK_PCS_NEG_* definitions. +* against the PHYLINK_PCS_NEG_* definitions. */ void pcs_link_up (struct phylink_pcs *pcs,unsigned int neg_mode,phy_interface_t interface,int speed,int duplex);
The fix LGTM, thanks!
Signature · 1 line
An old man doll... just what I always wanted! - Clara
This patch was applied to netdev/net.git (main) by David S. Miller <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by David S. Miller <[email protected]>:
Quoted 8 lines · On Tue, 5 Sep 2023 16:42:02 -0700 you wrote:
sphinx complains about the use of "%PHYLINK_PCS_NEG_*":
Documentation/networking/kapi:144:./include/linux/phylink.h:601: WARNING: Inline literal start-string without end-string.Documentation/networking/kapi:144:./include/linux/phylink.h:633: WARNING: Inline literal start-string without end-string.These are not valid symbols so drop the '%' prefix.
[...]
Here is the summary with links:
- [net] net: phylink: fix sphinx complaint about invalid literal
https://git.kernel.org/netdev/net/c/1a961e74d5ab
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html