* [PATCH] net: phy: Remove unnecessary indentation in the comments of phy_device
@ 2021-12-05 13:21 Yanteng Si
2021-12-05 13:45 ` Russell King (Oracle)
0 siblings, 1 reply; 5+ messages in thread
From: Yanteng Si @ 2021-12-05 13:21 UTC (permalink / raw)
To: andrew
Cc: hkallweit1, linux, netdev, corbet, chenhuacai, linux-doc,
siyanteng01, Yanteng Si
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.
Signed-off-by: Yanteng Si <siyanteng@loongson.cn>
---
include/linux/phy.h | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/include/linux/phy.h b/include/linux/phy.h
index 1e57cdd95da3..2f67273b0612 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -538,11 +538,11 @@ 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
--
2.27.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] net: phy: Remove unnecessary indentation in the comments of phy_device
2021-12-05 13:21 [PATCH] net: phy: Remove unnecessary indentation in the comments of phy_device Yanteng Si
@ 2021-12-05 13:45 ` Russell King (Oracle)
2021-12-05 14:25 ` yanteng si
2021-12-05 15:33 ` Akira Yokosawa
0 siblings, 2 replies; 5+ messages in thread
From: Russell King (Oracle) @ 2021-12-05 13:45 UTC (permalink / raw)
To: Yanteng Si
Cc: andrew, hkallweit1, netdev, corbet, chenhuacai, linux-doc,
Yanteng Si
On Sun, Dec 05, 2021 at 09:21:41PM +0800, Yanteng Si wrote:
> 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.
This seems to be at odds with the documentation in
Documentation/doc-guide/kernel-doc.rst.
The warning refers to lines 543, 544 and 546.
543: * Bits [23:16] are currently reserved for future use.
544: * Bits [31:24] are reserved for defining generic
545: * PHY driver behavior.
546: * @irq: IRQ number of the PHY's interrupt (-1 if none)
This doesn't look quite right with the warning messages above, because
544 doesn't unindent, and I've checked net-next, net, and mainline
trees, and they're all the same.
So, I think we first need to establish exactly which lines you are
seeing this warning for before anyone can make a suggestion.
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] net: phy: Remove unnecessary indentation in the comments of phy_device
2021-12-05 13:45 ` Russell King (Oracle)
@ 2021-12-05 14:25 ` yanteng si
2021-12-05 15:33 ` Akira Yokosawa
1 sibling, 0 replies; 5+ messages in thread
From: yanteng si @ 2021-12-05 14:25 UTC (permalink / raw)
To: Russell King (Oracle)
Cc: andrew, hkallweit1, netdev, Jonathan Corbet, Huacai Chen,
Linux Doc Mailing List, Yanteng Si
Russell King (Oracle) <linux@armlinux.org.uk> 于2021年12月5日周日 21:45写道:
>
> On Sun, Dec 05, 2021 at 09:21:41PM +0800, Yanteng Si wrote:
> > 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.
>
> This seems to be at odds with the documentation in
> Documentation/doc-guide/kernel-doc.rst.
>
> The warning refers to lines 543, 544 and 546.
>
> 543: * Bits [23:16] are currently reserved for future use.
> 544: * Bits [31:24] are reserved for defining generic
> 545: * PHY driver behavior.
> 546: * @irq: IRQ number of the PHY's interrupt (-1 if none)
>
> This doesn't look quite right with the warning messages above, because
> 544 doesn't unindent, and I've checked net-next, net, and mainline
> trees, and they're all the same.
They are not always precise.
> So, I think we first need to establish exactly which lines you are
> seeing this warning for before anyone can make a suggestion.
Dear Russell
My configuration environment and operation steps are as follows:
[siyanteng@sterling]$ cd linux-next
[siyanteng@sterling]$ ./scripts/sphinx-pre-install
Detected OS: CentOS Linux release 8.5.2111.
Sphinx version: 2.4.4
All optional dependencies are met.
Needed package dependencies are met.
[siyanteng@sterling]$ . sphinx_2.4.4/bin/activate
(sphinx_2.4.4) [siyanteng@sterling]$ make cleandocs
(sphinx_2.4.4) [siyanteng@sterling]$ make htmldocs
Thanks,
Yanteng
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] net: phy: Remove unnecessary indentation in the comments of phy_device
2021-12-05 13:45 ` Russell King (Oracle)
2021-12-05 14:25 ` yanteng si
@ 2021-12-05 15:33 ` Akira Yokosawa
2021-12-06 7:33 ` yanteng si
1 sibling, 1 reply; 5+ messages in thread
From: Akira Yokosawa @ 2021-12-05 15:33 UTC (permalink / raw)
To: Russell King (Oracle), Yanteng Si
Cc: Andrew Lunn, chenhuacai, Jonathan Corbet, Heiner Kallweit,
linux-doc, netdev, Yanteng Si
Hi,
On Sun, 5 Dec 2021 13:45:42 +0000, Russell King wrote:
> On Sun, Dec 05, 2021 at 09:21:41PM +0800, Yanteng Si wrote:
>> 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.
>
> This seems to be at odds with the documentation in
> Documentation/doc-guide/kernel-doc.rst.
>
> The warning refers to lines 543, 544 and 546.
>
> 543: * Bits [23:16] are currently reserved for future use.
> 544: * Bits [31:24] are reserved for defining generic
> 545: * PHY driver behavior.
> 546: * @irq: IRQ number of the PHY's interrupt (-1 if none)
>
> This doesn't look quite right with the warning messages above, because
> 544 doesn't unindent, and I've checked net-next, net, and mainline
> trees, and they're all the same.
>
> So, I think we first need to establish exactly which lines you are
> seeing this warning for before anyone can make a suggestion.
Just a hint of kernel-doc comment format, which is not fully covered
in Documentation/doc-guide/kernel-doc.rst.
I think the diff below is what you'd like:
----8<-----
diff --git a/include/linux/phy.h b/include/linux/phy.h
index 96e43fbb2dd8..1e180f3186d5 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -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
base-commit: 065db2d90c6b8384c9072fe55f01c3eeda16c3c0
----8<-----
Using bullet lists for bit fields is a reasonable approach,
I guess.
For bullet lists in ReST, which kernel-doc is based on, see
https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#bullet-lists
Just my 2c.
BR, Akira
>
> --
> RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
> FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] net: phy: Remove unnecessary indentation in the comments of phy_device
2021-12-05 15:33 ` Akira Yokosawa
@ 2021-12-06 7:33 ` yanteng si
0 siblings, 0 replies; 5+ messages in thread
From: yanteng si @ 2021-12-06 7:33 UTC (permalink / raw)
To: Akira Yokosawa
Cc: Russell King (Oracle), Andrew Lunn, Huacai Chen, Jonathan Corbet,
Heiner Kallweit, Linux Doc Mailing List, netdev, Yanteng Si
Akira Yokosawa <akiyks@gmail.com> 于2021年12月5日周日 23:33写道:
>
> Hi,
> On Sun, 5 Dec 2021 13:45:42 +0000, Russell King wrote:
> > On Sun, Dec 05, 2021 at 09:21:41PM +0800, Yanteng Si wrote:
> >> 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.
> >
> > This seems to be at odds with the documentation in
> > Documentation/doc-guide/kernel-doc.rst.
> >
> > The warning refers to lines 543, 544 and 546.
> >
> > 543: * Bits [23:16] are currently reserved for future use.
> > 544: * Bits [31:24] are reserved for defining generic
> > 545: * PHY driver behavior.
> > 546: * @irq: IRQ number of the PHY's interrupt (-1 if none)
> >
> > This doesn't look quite right with the warning messages above, because
> > 544 doesn't unindent, and I've checked net-next, net, and mainline
> > trees, and they're all the same.
> >
> > So, I think we first need to establish exactly which lines you are
> > seeing this warning for before anyone can make a suggestion.
>
> Just a hint of kernel-doc comment format, which is not fully covered
> in Documentation/doc-guide/kernel-doc.rst.
>
> I think the diff below is what you'd like:
Yeah! Thank you very much!
>
> ----8<-----
> diff --git a/include/linux/phy.h b/include/linux/phy.h
> index 96e43fbb2dd8..1e180f3186d5 100644
> --- a/include/linux/phy.h
> +++ b/include/linux/phy.h
> @@ -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
>
> base-commit: 065db2d90c6b8384c9072fe55f01c3eeda16c3c0
> ----8<-----
>
> Using bullet lists for bit fields is a reasonable approach,
> I guess.
>
> For bullet lists in ReST, which kernel-doc is based on, see
> https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#bullet-lists
I think I can fix the following two warnings:
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.
I will send-email it together in v2, Thank you very much!
Thanks,
Yanteng
>
> Just my 2c.
>
> BR, Akira
>
> >
> > --
> > RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
> > FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-12-06 7:33 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-05 13:21 [PATCH] net: phy: Remove unnecessary indentation in the comments of phy_device Yanteng Si
2021-12-05 13:45 ` Russell King (Oracle)
2021-12-05 14:25 ` yanteng si
2021-12-05 15:33 ` Akira Yokosawa
2021-12-06 7:33 ` yanteng si
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).