workflows.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/2] docs: checkpatch: Align block comment style
@ 2025-10-17 20:37 Brian Norris
  2025-10-17 20:37 ` [PATCH v2 2/2] docs: checkpatch: Drop networking " Brian Norris
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Brian Norris @ 2025-10-17 20:37 UTC (permalink / raw)
  To: Dwaipayan Ray, Lukas Bulwahn, Jonathan Corbet
  Cc: linux-doc, linux-kernel, Joe Perches, Randy Dunlap, workflows,
	Brian Norris

Ironically, the block style comments in the checkpatch documentation are
not aligned properly. Correct that.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
---

Changes in v2:
 * Add Randy's Reviewed/Tested-by

 Documentation/dev-tools/checkpatch.rst | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/Documentation/dev-tools/checkpatch.rst b/Documentation/dev-tools/checkpatch.rst
index d5c47e560324..d7fe023b3080 100644
--- a/Documentation/dev-tools/checkpatch.rst
+++ b/Documentation/dev-tools/checkpatch.rst
@@ -461,16 +461,16 @@ Comments
     line comments is::
 
       /*
-      * This is the preferred style
-      * for multi line comments.
-      */
+       * This is the preferred style
+       * for multi line comments.
+       */
 
     The networking comment style is a bit different, with the first line
     not empty like the former::
 
       /* This is the preferred comment style
-      * for files in net/ and drivers/net/
-      */
+       * for files in net/ and drivers/net/
+       */
 
     See: https://www.kernel.org/doc/html/latest/process/coding-style.html#commenting
 
-- 
2.51.0.858.gf9c4a03a3a-goog


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH v2 2/2] docs: checkpatch: Drop networking comment style
  2025-10-17 20:37 [PATCH v2 1/2] docs: checkpatch: Align block comment style Brian Norris
@ 2025-10-17 20:37 ` Brian Norris
  2025-10-17 21:16   ` Randy Dunlap
  2025-10-18  1:31 ` [PATCH v2 1/2] docs: checkpatch: Align block " Joe Perches
  2025-10-21 20:42 ` Jonathan Corbet
  2 siblings, 1 reply; 5+ messages in thread
From: Brian Norris @ 2025-10-17 20:37 UTC (permalink / raw)
  To: Dwaipayan Ray, Lukas Bulwahn, Jonathan Corbet
  Cc: linux-doc, linux-kernel, Joe Perches, Randy Dunlap, workflows,
	Brian Norris

Networking no longer has their own comment style, and checkpatch no
longer checks for this.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Suggested-by: Randy Dunlap <rdunlap@infradead.org>
---

Changes in v2:
 * new in v2

 Documentation/dev-tools/checkpatch.rst | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/Documentation/dev-tools/checkpatch.rst b/Documentation/dev-tools/checkpatch.rst
index d7fe023b3080..dfaad0a279ff 100644
--- a/Documentation/dev-tools/checkpatch.rst
+++ b/Documentation/dev-tools/checkpatch.rst
@@ -465,13 +465,6 @@ Comments
        * for multi line comments.
        */
 
-    The networking comment style is a bit different, with the first line
-    not empty like the former::
-
-      /* This is the preferred comment style
-       * for files in net/ and drivers/net/
-       */
-
     See: https://www.kernel.org/doc/html/latest/process/coding-style.html#commenting
 
   **C99_COMMENTS**
-- 
2.51.0.858.gf9c4a03a3a-goog


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2 2/2] docs: checkpatch: Drop networking comment style
  2025-10-17 20:37 ` [PATCH v2 2/2] docs: checkpatch: Drop networking " Brian Norris
@ 2025-10-17 21:16   ` Randy Dunlap
  0 siblings, 0 replies; 5+ messages in thread
From: Randy Dunlap @ 2025-10-17 21:16 UTC (permalink / raw)
  To: Brian Norris, Dwaipayan Ray, Lukas Bulwahn, Jonathan Corbet
  Cc: linux-doc, linux-kernel, Joe Perches, workflows



On 10/17/25 1:37 PM, Brian Norris wrote:
> Networking no longer has their own comment style, and checkpatch no
> longer checks for this.
> 
> Signed-off-by: Brian Norris <briannorris@chromium.org>
> Suggested-by: Randy Dunlap <rdunlap@infradead.org>

Reviewed-by: Randy Dunlap <rdunlap@infradead.org>

and for reference:

commit 82b8000c28b5
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Mon Aug 19 11:09:43 2024 +0200
    net: drop special comment style


Thanks.

> ---
> 
> Changes in v2:
>  * new in v2
> 
>  Documentation/dev-tools/checkpatch.rst | 7 -------
>  1 file changed, 7 deletions(-)
> 
> diff --git a/Documentation/dev-tools/checkpatch.rst b/Documentation/dev-tools/checkpatch.rst
> index d7fe023b3080..dfaad0a279ff 100644
> --- a/Documentation/dev-tools/checkpatch.rst
> +++ b/Documentation/dev-tools/checkpatch.rst
> @@ -465,13 +465,6 @@ Comments
>         * for multi line comments.
>         */
>  
> -    The networking comment style is a bit different, with the first line
> -    not empty like the former::
> -
> -      /* This is the preferred comment style
> -       * for files in net/ and drivers/net/
> -       */
> -
>      See: https://www.kernel.org/doc/html/latest/process/coding-style.html#commenting
>  
>    **C99_COMMENTS**

-- 
~Randy

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2 1/2] docs: checkpatch: Align block comment style
  2025-10-17 20:37 [PATCH v2 1/2] docs: checkpatch: Align block comment style Brian Norris
  2025-10-17 20:37 ` [PATCH v2 2/2] docs: checkpatch: Drop networking " Brian Norris
@ 2025-10-18  1:31 ` Joe Perches
  2025-10-21 20:42 ` Jonathan Corbet
  2 siblings, 0 replies; 5+ messages in thread
From: Joe Perches @ 2025-10-18  1:31 UTC (permalink / raw)
  To: Brian Norris, Dwaipayan Ray, Lukas Bulwahn, Jonathan Corbet
  Cc: linux-doc, linux-kernel, Randy Dunlap, workflows

On Fri, 2025-10-17 at 13:37 -0700, Brian Norris wrote:
> Ironically, the block style comments in the checkpatch documentation are
> not aligned properly. Correct that.

<snort>  Thanks.

And for the deletion too.
I didn't know about that changed.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2 1/2] docs: checkpatch: Align block comment style
  2025-10-17 20:37 [PATCH v2 1/2] docs: checkpatch: Align block comment style Brian Norris
  2025-10-17 20:37 ` [PATCH v2 2/2] docs: checkpatch: Drop networking " Brian Norris
  2025-10-18  1:31 ` [PATCH v2 1/2] docs: checkpatch: Align block " Joe Perches
@ 2025-10-21 20:42 ` Jonathan Corbet
  2 siblings, 0 replies; 5+ messages in thread
From: Jonathan Corbet @ 2025-10-21 20:42 UTC (permalink / raw)
  To: Brian Norris, Dwaipayan Ray, Lukas Bulwahn
  Cc: linux-doc, linux-kernel, Joe Perches, Randy Dunlap, workflows,
	Brian Norris

Brian Norris <briannorris@chromium.org> writes:

> Ironically, the block style comments in the checkpatch documentation are
> not aligned properly. Correct that.
>
> Signed-off-by: Brian Norris <briannorris@chromium.org>
> Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
> Tested-by: Randy Dunlap <rdunlap@infradead.org>
> ---
>
> Changes in v2:
>  * Add Randy's Reviewed/Tested-by
>
>  Documentation/dev-tools/checkpatch.rst | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)

Both applied, thanks.

jon

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-10-21 20:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-17 20:37 [PATCH v2 1/2] docs: checkpatch: Align block comment style Brian Norris
2025-10-17 20:37 ` [PATCH v2 2/2] docs: checkpatch: Drop networking " Brian Norris
2025-10-17 21:16   ` Randy Dunlap
2025-10-18  1:31 ` [PATCH v2 1/2] docs: checkpatch: Align block " Joe Perches
2025-10-21 20:42 ` Jonathan Corbet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox