diff mbox series

[net] net: phylink: fix sphinx complaint about invalid literal

Message ID 20230905234202.1152383-1-kuba@kernel.org (mailing list archive)
State Accepted
Commit 1a961e74d5abbea049588a3d74b759955b4ed9d5
Delegated to: Netdev Maintainers
Headers show
Series [net] net: phylink: fix sphinx complaint about invalid literal | expand

Checks

Context Check Description
netdev/series_format success Single patches do not need cover letters
netdev/tree_selection success Clearly marked for net
netdev/fixes_present success Fixes tag present in non-next series
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 1420 this patch: 1420
netdev/cc_maintainers success CCed 4 of 4 maintainers
netdev/build_clang success Errors and warnings before: 1358 this patch: 1358
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/deprecated_api success None detected
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success Fixes tag looks correct
netdev/build_allmodconfig_warn success Errors and warnings before: 1443 this patch: 1443
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 16 lines checked
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0

Commit Message

Jakub Kicinski Sept. 5, 2023, 11:42 p.m. UTC
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.

Fixes: f99d471afa03 ("net: phylink: add PCS negotiation mode")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Link: https://lore.kernel.org/all/20230626162908.2f149f98@canb.auug.org.au/
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
CC: linux@armlinux.org.uk
CC: rmk+kernel@armlinux.org.uk
---
 include/linux/phylink.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Bagas Sanjaya Sept. 6, 2023, 6:34 a.m. UTC | #1
On Tue, Sep 05, 2023 at 04:42:02PM -0700, Jakub Kicinski wrote:
> diff --git a/include/linux/phylink.h b/include/linux/phylink.h
> index 7d07f8736431..2b886ea654bb 100644
> --- a/include/linux/phylink.h
> +++ b/include/linux/phylink.h
> @@ -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);

The fix LGTM, thanks!

Reviewed-by: Bagas Sanjaya <bagasdotme@gmail.com>
patchwork-bot+netdevbpf@kernel.org Sept. 6, 2023, 6:50 a.m. UTC | #2
Hello:

This patch was applied to netdev/net.git (main)
by David S. Miller <davem@davemloft.net>:

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!
diff mbox series

Patch

diff --git a/include/linux/phylink.h b/include/linux/phylink.h
index 7d07f8736431..2b886ea654bb 100644
--- a/include/linux/phylink.h
+++ b/include/linux/phylink.h
@@ -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);