Skip to contentSkip to conversation

linux-next: Fixes tag needs some work in the clk tree

DISCUSSION Stephen Rothwell 6 participants 9 messages Jan 15, 2019 – Jan 18, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

[I am experimenting with checking the Fixes tags in commits in linux-next. Please let me know if you think I am being too strict.]

Hi all,

Commit

b488517b28a4 ("clk: socfpga: stratix10: fix naming convention for the fixed-clocks")

has a malformed Fixes tag:

Fixes 07afb8db7340 ("clk: socfpga: stratix10: add clock driver for

Stratix10 platform")

It should not be split over 2 lines.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw

Quoting Stephen Rothwell (2019-01-15 13:34:40)

Quoted 7 lines

[I am experimenting with checking the Fixes tags in commits in linux-next. Please let me know if you think I am being too strict.]

Hi all,

Commit

Quoted 8 lines

b488517b28a4 ("clk: socfpga: stratix10: fix naming convention for the fixed-clocks")

has a malformed Fixes tag:

Fixes 07afb8db7340 ("clk: socfpga: stratix10: add clock driver for

Stratix10 platform")

It should not be split over 2 lines.

Ok sure. Does this matter to scripts? Is it documented in Documentation/process/submitting-patches.rst? I've seen both types, one line or many lines, so I'm happy to mandate a policy as long as it's documented. Maybe also checkpatch can complain about this so that people don't submit patches "the wrong way".

#2 lore raw
Quoted 4 lines · Stephen Boyd

Ok sure. Does this matter to scripts? Is it documented in Documentation/process/submitting-patches.rst? I've seen both types, one

From Documentation/process/submitting-patches.rst"

"If your patch fixes a bug in a specific commit, e.g. you found an issue using ``git bisect``, please use the 'Fixes:' tag with the first 12 characters of the SHA-1 ID, and the one line summary. For example::

Fixes e21d2170f366 ("video: remove unnecessary platform_set_drvdata()")"
#3 lore raw

Quoting Fabio Estevam (2019-01-16 17:25:21)

Quoted 5 lines · Stephen Boyd
Quoted 3 lines

Ok sure. Does this matter to scripts? Is it documented in Documentation/process/submitting-patches.rst? I've seen both types, one

Quoted 7 lines

From Documentation/process/submitting-patches.rst"

"If your patch fixes a bug in a specific commit, e.g. you found an issue using ``git bisect``, please use the 'Fixes:' tag with the first 12 characters of the SHA-1 ID, and the one line summary. For example::

Fixes e21d2170f366 ("video: remove unnecessary platform_set_drvdata()")"

Yes but 'one line summary' is not clear to me. Does it mean the summary line? Or the one line summary on one line regardless of commit message column wrapping? Sorry to be pedantic but I can see how this can be misunderstood.

#4 lore raw
Quoted 12 lines · Stephen Boyd

Quoting Fabio Estevam (2019-01-16 17:25:21)

Quoted 11 lines · Stephen Boyd
Quoted 3 lines

Ok sure. Does this matter to scripts? Is it documented in Documentation/process/submitting-patches.rst? I've seen both types, one

From Documentation/process/submitting-patches.rst"

"If your patch fixes a bug in a specific commit, e.g. you found an issue using ``git bisect``, please use the 'Fixes:' tag with the first 12 characters of the SHA-1 ID, and the one line summary. For example::

Quoted 6 lines
Quoted 1 line
Fixes e21d2170f366 ("video: remove unnecessary platform_set_drvdata()")"

Yes but 'one line summary' is not clear to me. Does it mean the summary line? Or the one line summary on one line regardless of commit message column wrapping? Sorry to be pedantic but I can see how this can be misunderstood.

Yeah "one line summary" is referring to the subject of the commit.

So it doesn't explicitly say not to split it across lines, it probably should.

eg: ?

Documentation/process/submitting-patches.rst +2 -0
index 30dc00a364e8..12a283ba3929 100644
@@ -186,6 +186,8 @@ If your patch fixes a bug in a specific commit, e.g. you found an issue using
 
 	Fixes: e21d2170f366 ("video: remove unnecessary platform_set_drvdata()")
 
+To ease parsing of the 'Fixes:' tag please don't split it across multiple lines.
+
 The following ``git config`` settings can be used to add a pretty format for
 outputting the above style in the ``git log`` or ``git show`` commands::
 

cheers

#5 lore raw

Hi Michael,

Quoted 12 lines · Michael Ellerman

Yeah "one line summary" is referring to the subject of the commit.

So it doesn't explicitly say not to split it across lines, it probably should.

eg: ?

Documentation/process/submitting-patches.rst +0 -0
index 30dc00a364e8..12a283ba3929 100644

Documentation/process/submitting-patches.rst If your patch fixes a bug in a specific commit, e.g. you found an issue using · line 192

Quoted 7 lines
Documentation/process/submitting-patches.rst +2 -0
@@ -186,6 +186,8 @@ If your patch fixes a bug in a specific commit, e.g. you found an issue using
 
        Fixes: e21d2170f366 ("video: remove unnecessary platform_set_drvdata()")
 
+To ease parsing of the 'Fixes:' tag please don't split it across multiple lines.
+
 The following ``git config`` settings can be used to add a pretty format for
 outputting the above style in the ``git log`` or ``git show`` commands::

Yes, I think this make it clearer. Thanks

Reviewed-by
#6 lore raw
In reply to Michael Ellerman

Quoting Michael Ellerman (2019-01-18 04:41:41)

Quoted 21 lines
Quoted 12 lines · Stephen Boyd

Quoting Fabio Estevam (2019-01-16 17:25:21)

Quoted 11 lines · Stephen Boyd
Quoted 3 lines

Ok sure. Does this matter to scripts? Is it documented in Documentation/process/submitting-patches.rst? I've seen both types, one

From Documentation/process/submitting-patches.rst"

"If your patch fixes a bug in a specific commit, e.g. you found an issue using ``git bisect``, please use the 'Fixes:' tag with the first 12 characters of the SHA-1 ID, and the one line summary. For example::

Quoted 6 lines
Quoted 1 line
Fixes e21d2170f366 ("video: remove unnecessary platform_set_drvdata()")"

Yes but 'one line summary' is not clear to me. Does it mean the summary line? Or the one line summary on one line regardless of commit message column wrapping? Sorry to be pedantic but I can see how this can be misunderstood.

Quoted 6 lines

Yeah "one line summary" is referring to the subject of the commit.

So it doesn't explicitly say not to split it across lines, it probably should.

eg: ?

Yes, thanks!

Quoted 7 lines
Documentation/process/submitting-patches.rst +0 -0
index 30dc00a364e8..12a283ba3929 100644

Documentation/process/submitting-patches.rst If your patch fixes a bug in a specific commit, e.g. you found an issue using · line 193

Quoted 8 lines
Documentation/process/submitting-patches.rst +2 -0
@@ -186,6 +186,8 @@ If your patch fixes a bug in a specific commit, e.g. you found an issue using
 
        Fixes: e21d2170f366 ("video: remove unnecessary platform_set_drvdata()")
 
+To ease parsing of the 'Fixes:' tag please don't split it across multiple lines.
+
 The following ``git config`` settings can be used to add a pretty format for
 outputting the above style in the ``git log`` or ``git show`` commands::
 

Do you have a patch for checkpatch too? Maybe Joe can solve my problem.

#7 lore raw
Quoted 49 lines · Stephen Boyd

Quoting Michael Ellerman (2019-01-18 04:41:41)

Quoted 21 lines
Quoted 12 lines · Stephen Boyd

Quoting Fabio Estevam (2019-01-16 17:25:21)

Quoted 11 lines · Stephen Boyd
Quoted 3 lines

Ok sure. Does this matter to scripts? Is it documented in Documentation/process/submitting-patches.rst? I've seen both types, one

From Documentation/process/submitting-patches.rst"

"If your patch fixes a bug in a specific commit, e.g. you found an issue using ``git bisect``, please use the 'Fixes:' tag with the first 12 characters of the SHA-1 ID, and the one line summary. For example::

Quoted 6 lines
Quoted 1 line
Fixes e21d2170f366 ("video: remove unnecessary platform_set_drvdata()")"

Yes but 'one line summary' is not clear to me. Does it mean the summary line? Or the one line summary on one line regardless of commit message column wrapping? Sorry to be pedantic but I can see how this can be misunderstood.

Quoted 6 lines

Yeah "one line summary" is referring to the subject of the commit.

So it doesn't explicitly say not to split it across lines, it probably should.

eg: ?

Yes, thanks!

Quoted 7 lines
Documentation/process/submitting-patches.rst +0 -0
index 30dc00a364e8..12a283ba3929 100644

Documentation/process/submitting-patches.rst If your patch fixes a bug in a specific commit, e.g. you found an issue using · line 193

Quoted 8 lines
Documentation/process/submitting-patches.rst +2 -0
@@ -186,6 +186,8 @@ If your patch fixes a bug in a specific commit, e.g. you found an issue using
 
        Fixes: e21d2170f366 ("video: remove unnecessary platform_set_drvdata()")
 
+To ease parsing of the 'Fixes:' tag please don't split it across multiple lines.
+
 The following ``git config`` settings can be used to add a pretty format for
 outputting the above style in the ``git log`` or ``git show`` commands::
 
Quoted 2 lines

Do you have a patch for checkpatch too? Maybe Joe can solve my problem.

Joe posted a checkpatch diff in another thread: https://lore.kernel.org/lkml/[email protected]/

Nathan

#8 lore raw
Quoted 4 lines · Nathan Chancellor
Quoted 1 line · Stephen Boyd

Do you have a patch for checkpatch too? Maybe Joe can solve my problem.

Joe posted a checkpatch diff in another thread:
https://lore.kernel.org/lkml/[email protected]/

That proposal has the negative that a Fixes: line is often after a Signed-off-by: line and the test does not validate Fixes lines after Signed-off-by:s.

I would still appreciate some external testing of
the proposed patch.