Skip to contentSkip to conversation

net: phy: Fix doc build warning

PATCH Applied Yanteng Si 2 participants 4 messages Dec 6, 2021 – Dec 8, 2021

Subsystems (5)
lore
Share & tools
lore

Yanteng Si

author
#0 lore raw

v2 cover net: phy: Fix doc build warning

v2:

* Modified Patch 1/2 under Akira's advices.

* Add Patch 2/2 to fix warning as:

Documentation/networking/kapi:147: ./drivers/net/phy/phylink.c:1657: WARNING: Unexpected indentation. Documentation/networking/kapi:147: ./drivers/net/phy/phylink.c:1658: WARNING: Block quote ends without a blank line; unexpected unindent.

v1:(Patch 0001)

* Fix warning as:

linux-next/Documentation/networking/kapi:122: ./include/linux/phy.h:543: WARNING: Unexpected indentation. linux-next/Documentation/networking/kapi:122: ./include/linux/phy.h:544: WARNING: Block quote ends without a blank line; unexpected unindent. linux-next/Documentation/networking/kapi:122: ./include/linux/phy.h:546: WARNING: Unexpected indentation.

Yanteng Si (2):
net: phy: Remove unnecessary indentation in the comments of phy_device
net: phy: Add the missing blank line in the phylink_suspend comment

 drivers/net/phy/phylink.c |  1 +
 include/linux/phy.h       | 11 ++++++-----
 2 files changed, 7 insertions(+), 5 deletions(-)
Signature · 1 line
2.27.0
author
#1 lore raw

PATCH v2 1/2 net: phy: Remove unnecessary indentation in the comments of phy_device

From: Yanteng Si <[email protected]>

Fix warning as:

linux-next/Documentation/networking/kapi:122: ./include/linux/phy.h:543: WARNING: Unexpected indentation. linux-next/Documentation/networking/kapi:122: ./include/linux/phy.h:544: WARNING: Block quote ends without a blank line; unexpected unindent. linux-next/Documentation/networking/kapi:122: ./include/linux/phy.h:546: WARNING: Unexpected indentation.

---
 include/linux/phy.h | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
include/linux/phy.h +6 -5
index 1e57cdd95da3..6de8d7a90d78 100644
@@ -538,11 +538,12 @@ struct macsec_ops;
  * @mac_managed_pm: Set true if MAC driver takes of suspending/resuming PHY
  * @state: State of the PHY for management purposes
  * @dev_flags: Device-specific flags used by the PHY driver.
- *		Bits [15:0] are free to use by the PHY driver to communicate
- *			    driver specific behavior.
- *		Bits [23:16] are currently reserved for future use.
- *		Bits [31:24] are reserved for defining generic
- *			     PHY driver behavior.
+ *
+ *      - Bits [15:0] are free to use by the PHY driver to communicate
+ *        driver specific behavior.
+ *      - Bits [23:16] are currently reserved for future use.
+ *      - Bits [31:24] are reserved for defining generic
+ *        PHY driver behavior.
  * @irq: IRQ number of the PHY's interrupt (-1 if none)
  * @phy_timer: The timer for handling the state machine
  * @phylink: Pointer to phylink instance for this PHY
Signature · 1 line
2.27.0
author
#2 lore raw

PATCH v2 2/2 net: phy: Add the missing blank line in the phylink_suspend comment

In reply to Yanteng Si

Fix warning as:

Documentation/networking/kapi:147: ./drivers/net/phy/phylink.c:1657: WARNING: Unexpected indentation. Documentation/networking/kapi:147: ./drivers/net/phy/phylink.c:1658: WARNING: Block quote ends without a blank line; unexpected unindent.

---
 drivers/net/phy/phylink.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/phy/phylink.c +1 -0
index 8e3861f09b4f..c26884a56354 100644
@@ -1653,6 +1653,7 @@ EXPORT_SYMBOL_GPL(phylink_stop);
  * @mac_wol: true if the MAC needs to receive packets for Wake-on-Lan
  *
  * Handle a network device suspend event. There are several cases:
+ *
  * - If Wake-on-Lan is not active, we can bring down the link between
  *   the MAC and PHY by calling phylink_stop().
  * - If Wake-on-Lan is active, and being handled only by the PHY, we
Signature · 1 line
2.27.0
#3 lore raw
In reply to Yanteng Si
This series was applied to netdev/net.git (master) by Jakub Kicinski <[email protected]>:

Hello:

This series was applied to netdev/net.git (master) by Jakub Kicinski <[email protected]>:

Quoted 10 lines · On Mon, 6 Dec 2021 16:12:26 +0800 you wrote:

v2:

* Modified Patch 1/2 under Akira's advices.

* Add Patch 2/2 to fix warning as:

Documentation/networking/kapi:147: ./drivers/net/phy/phylink.c:1657: WARNING: Unexpected indentation. Documentation/networking/kapi:147: ./drivers/net/phy/phylink.c:1658: WARNING: Block quote ends without a blank line; unexpected unindent.

[...]

Here is the summary with links:
- [v2,1/2] net: phy: Remove unnecessary indentation in the comments of phy_device

    https://git.kernel.org/netdev/net/c/a97770cc4016
  - [v2,2/2] net: phy: Add the missing blank line in the phylink_suspend comment
    https://git.kernel.org/netdev/net/c/c35e8de70456

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html