linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] checkpatch: whitelist Originally-by: signature
@ 2019-11-15 15:02 Eugeniu Rosca
  2019-11-15 15:09 ` Joe Perches
  0 siblings, 1 reply; 8+ messages in thread
From: Eugeniu Rosca @ 2019-11-15 15:02 UTC (permalink / raw)
  To: Andy Whitcroft, Joe Perches
  Cc: linux-kernel, Eugeniu Rosca, Eugeniu Rosca, Thomas Gleixner

Oftentimes [1], the contributor would like to honor or give credits [2]
to somebody's original ideas in the submission/reviewing process. While
"Co-developed-by:" and "Suggested-by:" (currently whitelisted) could be
employed for this purpose, they are not ideal.

Below matrix attempts portraying/quantifying the subtle differences
between these signatures (subjective/oversimplified):

Helper signature    Contribution "ownership"
None                100% Author
Suggested-by: X     80% Author / 20% "X"
Co-developed-by: X  50% Author / 50% "X"
Originally-by: X    20% Author / 80% "X"

[1] linux (v5.4-rc7) git log --oneline --grep Originally-by | wc -l
    88
[2] https://lore.kernel.org/lkml/alpine.DEB.2.21.1909261144250.5528@nanos.tec.linutronix.de/

Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com>
---
 scripts/checkpatch.pl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 6fcc66afb088..e456aba12bd0 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -486,6 +486,7 @@ our $signature_tags = qr{(?xi:
 	Reviewed-by:|
 	Reported-by:|
 	Suggested-by:|
+	Originally-by:|
 	To:|
 	Cc:
 )};
-- 
2.24.0


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

* Re: [PATCH] checkpatch: whitelist Originally-by: signature
  2019-11-15 15:02 [PATCH] checkpatch: whitelist Originally-by: signature Eugeniu Rosca
@ 2019-11-15 15:09 ` Joe Perches
  2019-11-15 15:46   ` Eugeniu Rosca
  0 siblings, 1 reply; 8+ messages in thread
From: Joe Perches @ 2019-11-15 15:09 UTC (permalink / raw)
  To: Eugeniu Rosca, Andy Whitcroft
  Cc: linux-kernel, Eugeniu Rosca, Thomas Gleixner, Jonathan Corbet

On Fri, 2019-11-15 at 16:02 +0100, Eugeniu Rosca wrote:
> Oftentimes [1], the contributor would like to honor or give credits [2]
> to somebody's original ideas in the submission/reviewing process. While
> "Co-developed-by:" and "Suggested-by:" (currently whitelisted) could be
> employed for this purpose, they are not ideal.

You need to get the use of this accepted into Documentation/process
before adding it to checkpatch



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

* Re: [PATCH] checkpatch: whitelist Originally-by: signature
  2019-11-15 15:09 ` Joe Perches
@ 2019-11-15 15:46   ` Eugeniu Rosca
  2019-11-15 16:29     ` Jonathan Corbet
  0 siblings, 1 reply; 8+ messages in thread
From: Eugeniu Rosca @ 2019-11-15 15:46 UTC (permalink / raw)
  To: Jonathan Corbet
  Cc: Eugeniu Rosca, Joe Perches, Andy Whitcroft, linux-kernel,
	Eugeniu Rosca, Thomas Gleixner

Hi Jonathan,

On Fri, Nov 15, 2019 at 07:09:17AM -0800, Joe Perches wrote:
> On Fri, 2019-11-15 at 16:02 +0100, Eugeniu Rosca wrote:
> > Oftentimes [1], the contributor would like to honor or give credits [2]
> > to somebody's original ideas in the submission/reviewing process. While
> > "Co-developed-by:" and "Suggested-by:" (currently whitelisted) could be
> > employed for this purpose, they are not ideal.
> 
> You need to get the use of this accepted into Documentation/process
> before adding it to checkpatch

If the change [*] makes sense to you, I can submit an update to
Documentation/process/submitting-patches.rst

[*] https://marc.info/?l=linux-kernel&m=157383014408527&w=2

-- 
Best Regards,
Eugeniu

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

* Re: [PATCH] checkpatch: whitelist Originally-by: signature
  2019-11-15 15:46   ` Eugeniu Rosca
@ 2019-11-15 16:29     ` Jonathan Corbet
  2019-11-15 17:21       ` Eugeniu Rosca
  2019-11-15 21:32       ` Joe Perches
  0 siblings, 2 replies; 8+ messages in thread
From: Jonathan Corbet @ 2019-11-15 16:29 UTC (permalink / raw)
  To: Eugeniu Rosca
  Cc: Joe Perches, Andy Whitcroft, linux-kernel, Eugeniu Rosca,
	Thomas Gleixner

On Fri, 15 Nov 2019 16:46:27 +0100
Eugeniu Rosca <erosca@de.adit-jv.com> wrote:

> On Fri, Nov 15, 2019 at 07:09:17AM -0800, Joe Perches wrote:
> > On Fri, 2019-11-15 at 16:02 +0100, Eugeniu Rosca wrote:  
> > > Oftentimes [1], the contributor would like to honor or give credits [2]
> > > to somebody's original ideas in the submission/reviewing process. While
> > > "Co-developed-by:" and "Suggested-by:" (currently whitelisted) could be
> > > employed for this purpose, they are not ideal.  
> > 
> > You need to get the use of this accepted into Documentation/process
> > before adding it to checkpatch  
> 
> If the change [*] makes sense to you, I can submit an update to
> Documentation/process/submitting-patches.rst

So there appear to be 89 patches with Originally-by in the entire Git
history, which isn't a a lot; there are 3x as many Co-developed-by tags,
which still isn't a huge number.  I do wonder if it's worth recognizing
yet another tag with a subtly different shade of meaning here?  My own
opinion doesn't matter a lot, but I'd like to have a sense that there is
wider acceptance of this tag before adding it to the docs.

Thanks,

jon

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

* Re: [PATCH] checkpatch: whitelist Originally-by: signature
  2019-11-15 16:29     ` Jonathan Corbet
@ 2019-11-15 17:21       ` Eugeniu Rosca
  2019-11-27  9:25         ` Geert Uytterhoeven
  2019-11-15 21:32       ` Joe Perches
  1 sibling, 1 reply; 8+ messages in thread
From: Eugeniu Rosca @ 2019-11-15 17:21 UTC (permalink / raw)
  To: Jonathan Corbet
  Cc: Eugeniu Rosca, Joe Perches, Andy Whitcroft, linux-kernel,
	Eugeniu Rosca, Thomas Gleixner

Hi Jonathan,

On Fri, Nov 15, 2019 at 09:29:43AM -0700, Jonathan Corbet wrote:
> On Fri, 15 Nov 2019 16:46:27 +0100
> Eugeniu Rosca <erosca@de.adit-jv.com> wrote:
> 
> > On Fri, Nov 15, 2019 at 07:09:17AM -0800, Joe Perches wrote:
> > > On Fri, 2019-11-15 at 16:02 +0100, Eugeniu Rosca wrote:  
> > > > Oftentimes [1], the contributor would like to honor or give credits [2]
> > > > to somebody's original ideas in the submission/reviewing process. While
> > > > "Co-developed-by:" and "Suggested-by:" (currently whitelisted) could be
> > > > employed for this purpose, they are not ideal.  
> > > 
> > > You need to get the use of this accepted into Documentation/process
> > > before adding it to checkpatch  
> > 
> > If the change [*] makes sense to you, I can submit an update to
> > Documentation/process/submitting-patches.rst
> 
> So there appear to be 89 patches with Originally-by in the entire Git
> history, which isn't a a lot; there are 3x as many Co-developed-by tags,
> which still isn't a huge number.  I do wonder if it's worth recognizing
> yet another tag with a subtly different shade of meaning here?  My own
> opinion doesn't matter a lot, but I'd like to have a sense that there is
> wider acceptance of this tag before adding it to the docs.

I will give a real-life example. Say, I have some patches in my
local tree and they've been developed by somebody who is no longer
interested/paid to upstream those.

I first submit those patches with the original authorship, plus my SoB.
Then, the reviewers post their findings. I put my time into fixing those
and re-testing the patch or the entire series. The final patch/series
may look totally different compared to the original one.

Which way would you suggest to give credits to the original author?
I personally think that "Co-developed-by:" conveys the idea/feeling of
"teaming up" with somebody, which doesn't happen in my example.

-- 
Best Regards,
Eugeniu

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

* Re: [PATCH] checkpatch: whitelist Originally-by: signature
  2019-11-15 16:29     ` Jonathan Corbet
  2019-11-15 17:21       ` Eugeniu Rosca
@ 2019-11-15 21:32       ` Joe Perches
  1 sibling, 0 replies; 8+ messages in thread
From: Joe Perches @ 2019-11-15 21:32 UTC (permalink / raw)
  To: Jonathan Corbet, Eugeniu Rosca
  Cc: Andy Whitcroft, linux-kernel, Eugeniu Rosca, Thomas Gleixner

On Fri, 2019-11-15 at 09:29 -0700, Jonathan Corbet wrote:
> On Fri, 15 Nov 2019 16:46:27 +0100
> Eugeniu Rosca <erosca@de.adit-jv.com> wrote:
> 
> > On Fri, Nov 15, 2019 at 07:09:17AM -0800, Joe Perches wrote:
> > > On Fri, 2019-11-15 at 16:02 +0100, Eugeniu Rosca wrote:  
> > > > Oftentimes [1], the contributor would like to honor or give credits [2]
> > > > to somebody's original ideas in the submission/reviewing process. While
> > > > "Co-developed-by:" and "Suggested-by:" (currently whitelisted) could be
> > > > employed for this purpose, they are not ideal.  
> > > 
> > > You need to get the use of this accepted into Documentation/process
> > > before adding it to checkpatch  
> > 
> > If the change [*] makes sense to you, I can submit an update to
> > Documentation/process/submitting-patches.rst
> 
> So there appear to be 89 patches with Originally-by in the entire Git
> history, which isn't a a lot; there are 3x as many Co-developed-by tags,
> which still isn't a huge number.  I do wonder if it's worth recognizing
> yet another tag with a subtly different shade of meaning here?  My own
> opinion doesn't matter a lot, but I'd like to have a sense that there is
> wider acceptance of this tag before adding it to the docs.

I am also not a proponent of adding this as a new tag/signature.



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

* Re: [PATCH] checkpatch: whitelist Originally-by: signature
  2019-11-15 17:21       ` Eugeniu Rosca
@ 2019-11-27  9:25         ` Geert Uytterhoeven
  2019-11-27 11:25           ` Eugeniu Rosca
  0 siblings, 1 reply; 8+ messages in thread
From: Geert Uytterhoeven @ 2019-11-27  9:25 UTC (permalink / raw)
  To: Eugeniu Rosca
  Cc: Jonathan Corbet, Joe Perches, Andy Whitcroft,
	Linux Kernel Mailing List, Eugeniu Rosca, Thomas Gleixner

Hi Eugeniu,

On Fri, Nov 15, 2019 at 6:24 PM Eugeniu Rosca <erosca@de.adit-jv.com> wrote:
> On Fri, Nov 15, 2019 at 09:29:43AM -0700, Jonathan Corbet wrote:
> > On Fri, 15 Nov 2019 16:46:27 +0100
> > Eugeniu Rosca <erosca@de.adit-jv.com> wrote:
> > > On Fri, Nov 15, 2019 at 07:09:17AM -0800, Joe Perches wrote:
> > > > On Fri, 2019-11-15 at 16:02 +0100, Eugeniu Rosca wrote:
> > > > > Oftentimes [1], the contributor would like to honor or give credits [2]
> > > > > to somebody's original ideas in the submission/reviewing process. While
> > > > > "Co-developed-by:" and "Suggested-by:" (currently whitelisted) could be
> > > > > employed for this purpose, they are not ideal.
> > > >
> > > > You need to get the use of this accepted into Documentation/process
> > > > before adding it to checkpatch
> > >
> > > If the change [*] makes sense to you, I can submit an update to
> > > Documentation/process/submitting-patches.rst
> >
> > So there appear to be 89 patches with Originally-by in the entire Git
> > history, which isn't a a lot; there are 3x as many Co-developed-by tags,
> > which still isn't a huge number.  I do wonder if it's worth recognizing
> > yet another tag with a subtly different shade of meaning here?  My own
> > opinion doesn't matter a lot, but I'd like to have a sense that there is
> > wider acceptance of this tag before adding it to the docs.
>
> I will give a real-life example. Say, I have some patches in my
> local tree and they've been developed by somebody who is no longer
> interested/paid to upstream those.
>
> I first submit those patches with the original authorship, plus my SoB.
> Then, the reviewers post their findings. I put my time into fixing those
> and re-testing the patch or the entire series. The final patch/series
> may look totally different compared to the original one.
>
> Which way would you suggest to give credits to the original author?
> I personally think that "Co-developed-by:" conveys the idea/feeling of
> "teaming up" with somebody, which doesn't happen in my example.

What I typically do is this:
  1. If the changes due to review are minor, I just add my SoB below the
     original SoB,
  2. If the changes are not insignificant, I also add a line "[geert: Did foo]"
     in between the original SoB and mine,
  3. If the patch needed a complete rewrite, I assume ownership, and add
     "Based on/inspired by ..." to the patch description to give credit.

Hope this helps (and is acceptable for other people ;-)

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH] checkpatch: whitelist Originally-by: signature
  2019-11-27  9:25         ` Geert Uytterhoeven
@ 2019-11-27 11:25           ` Eugeniu Rosca
  0 siblings, 0 replies; 8+ messages in thread
From: Eugeniu Rosca @ 2019-11-27 11:25 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Eugeniu Rosca, Jonathan Corbet, Joe Perches, Andy Whitcroft,
	Linux Kernel Mailing List, Eugeniu Rosca, Thomas Gleixner

Hi Geert,

On Wed, Nov 27, 2019 at 10:25:29AM +0100, Geert Uytterhoeven wrote:
[..]
> On Fri, Nov 15, 2019 at 6:24 PM Eugeniu Rosca <erosca@de.adit-jv.com> wrote:
[..]
> > I will give a real-life example. Say, I have some patches in my
> > local tree and they've been developed by somebody who is no longer
> > interested/paid to upstream those.
> >
> > I first submit those patches with the original authorship, plus my SoB.
> > Then, the reviewers post their findings. I put my time into fixing those
> > and re-testing the patch or the entire series. The final patch/series
> > may look totally different compared to the original one.
> >
> > Which way would you suggest to give credits to the original author?
> > I personally think that "Co-developed-by:" conveys the idea/feeling of
> > "teaming up" with somebody, which doesn't happen in my example.
> 
> What I typically do is this:
>   1. If the changes due to review are minor, I just add my SoB below the
>      original SoB,
>   2. If the changes are not insignificant, I also add a line "[geert: Did foo]"
>      in between the original SoB and mine,
>   3. If the patch needed a complete rewrite, I assume ownership, and add
>      "Based on/inspired by ..." to the patch description to give credit.
> 
> Hope this helps (and is acceptable for other people ;-)

Thank you for your time to share the best practices from the heart of
Linux kernel community. This looks like a reasonable blueprint to follow
and I will personally bookmark and quote it whenever appropriate.

The way I see "Originally-by" is that it attempts to replace the free
wording implied at #3 (i.e. patch rewrite case) and hence its benefit.

The less words I have to creatively write by myself, the less errors
I'll make, the less ambiguous my patch will be, the more time I'll have
to dedicate to the important parts of the patch description (feature
overview, bug reproduction, test scenario, etc).

I also understand the desire not to make the process more complicated
than it needs to be. I expect the signature to still pop up here and
there and whether it makes sense to whitelist it, time will tell.

-- 
Best Regards,
Eugeniu

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

end of thread, other threads:[~2019-11-27 11:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-15 15:02 [PATCH] checkpatch: whitelist Originally-by: signature Eugeniu Rosca
2019-11-15 15:09 ` Joe Perches
2019-11-15 15:46   ` Eugeniu Rosca
2019-11-15 16:29     ` Jonathan Corbet
2019-11-15 17:21       ` Eugeniu Rosca
2019-11-27  9:25         ` Geert Uytterhoeven
2019-11-27 11:25           ` Eugeniu Rosca
2019-11-15 21:32       ` Joe Perches

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).