Skip to contentSkip to conversation

docs: Clarify the usage and sign-off requirements for Co-developed-by

PATCH Superseded Sean Christopherson 3 participants 4 messages Mar 22, 2019

Subsystems (2)

v4 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 docs: Clarify the usage and sign-off requirements for Co-developed-by

The documentation for Co-developed-by is a bit light on details, e.g. it doesn't explicitly state that:

- Multiple Co-developed-by tags are perfectly acceptable
- Co-developed-by and Signed-off-by must be paired together
- SOB ordering should still follow standard sign-off procedure

Lack of explicit direction has resulted in developers taking a variety of approaches, often lacking any intent whatsoever, e.g. scattering SOBs willy-nilly, collecting them all at the end or the beginning, etc... Tweak the wording to make it clear that multiple co-authors are allowed, and document the expectation that standard sign-off procedures are to be followed.

The use of "original author" has also led to confusion as many patches don't have just one "original" author, e.g. when multiple developers are involved from the genesis of the patch. Remove all usage of "original" and instead call out that Co-developed-by is simply a way to provide attribution in addition to the From tag, i.e. neither tag is intended to imply anything with regard to who did what.

Provide examples to (hopefully) eliminate any ambiguity.

Cc Tobin C. Harding <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Jani Nikula <[email protected]>
Cc Jorge Ramirez-Ortiz <[email protected]>
Cc Jonathan Cameron <[email protected]>
Cc Joe Perches <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Niklas Cassel <[email protected]>
Cc Jonathan Corbet <[email protected]>

---

v1: https://lkml.kernel.org/r/[email protected]
v2: https://lkml.kernel.org/r/[email protected]
Rewrite the blurb to state standard sign-off procedure should be followed as opposed to dictating the original author's SOB be last.
v3: https://lkml.kernel.org/r/[email protected]
Update a similar blurb in Documentation/process/5.Posting.rst
v4: Rework the blurbs to avoid use of the word "original" [Tobin]

 Documentation/process/5.Posting.rst          | 10 +++--
 Documentation/process/submitting-patches.rst | 40 +++++++++++++++++---
 2 files changed, 41 insertions(+), 9 deletions(-)
Documentation/process/5.Posting.rst +6 -4
index 4213e580f273..d2da09372563 100644
@@ -216,10 +216,12 @@ The tags in common use are:
    which can be found in :ref:`Documentation/process/submitting-patches.rst <submittingpatches>`
    Code without a proper signoff cannot be merged into the mainline.
 
- - Co-developed-by: states that the patch was also created by another developer
-   along with the original author.  This is useful at times when multiple
-   people work on a single patch.  Note, this person also needs to have a
-   Signed-off-by: line in the patch as well.
+ - Co-developed-by: states that the patch was co-created by several developers;
+   it is a used to give attribution to co-authors (in addition to the author
+   atrributed by the From: tag) when multiple people work on a single patch.
+   Every Co-developed-by: must be immediately followed by a Signed-off-by: of
+   the associated co-author.  Details and examples can be found in
+   :ref:`Documentation/process/submitting-patches.rst <submittingpatches>`.
 
  - Acked-by: indicates an agreement by another developer (often a
    maintainer of the relevant code) that the patch is appropriate for
Documentation/process/submitting-patches.rst +35 -5
index be7d1829c3af..06db26b12495 100644
@@ -545,10 +545,40 @@ person it names - but it should indicate that this person was copied on the
 patch.  This tag documents that potentially interested parties
 have been included in the discussion.
 
-A Co-developed-by: states that the patch was also created by another developer
-along with the original author.  This is useful at times when multiple people
-work on a single patch.  Note, this person also needs to have a Signed-off-by:
-line in the patch as well.
+Co-developed-by: states that the patch was co-created by multiple developers;
+it is a used to give attribution to co-authors (in addition to the author
+attributed by the From: tag) when several people work on a single patch.  Since
+Co-developed-by: denotes authorship, every Co-developed-by: must be immediately
+followed by a Signed-off-by: of the associated co-author.  Standard sign-off
+procedure applies, i.e. the ordering of Signed-off-by: tags should reflect the
+chronological history of the patch insofar as possible, regardless of whether
+the author is attributed via From: or Co-developed-by:.  Notably, the last
+Signed-off-by: must always be that of the developer submitting the patch.
+
+Note, the From: tag is optional when the From: author is also the person (and
+email) listed in the From: line of the email header.
+
+Example of a patch submitted by the From: author::
+
+	<changelog>
+
+	Co-developed-by: First Co-Author <[email protected]>
+	Signed-off-by: First Co-Author <[email protected]>
+	Co-developed-by: Second Co-Author <[email protected]>
+	Signed-off-by: Second Co-Author <[email protected]>
+	Signed-off-by: From Author <[email protected]>
+
+Example of a patch submitted by a Co-developed-by: author::
+
+	From: From Author <[email protected]>
+
+	<changelog>
+
+	Co-developed-by: Random Co-Author <[email protected]>
+	Signed-off-by: Random Co-Author <[email protected]>
+	Signed-off-by: From Author <[email protected]>
+	Co-developed-by: Submitting Co-Author <[email protected]>
+	Signed-off-by: Submitting Co-Author <[email protected]>
 
 
 13) Using Reported-by:, Tested-by:, Reviewed-by:, Suggested-by: and Fixes:
@@ -696,7 +726,7 @@ A couple of example Subjects::
 The ``from`` line must be the very first line in the message body,
 and has the form:
 
-        From: Original Author <[email protected]>
+        From: Patch Author <[email protected]>
 
 The ``from`` line specifies who will be credited as the author of the
 patch in the permanent changelog.  If the ``from`` line is missing,
Signature · 1 line
2.21.0
#1 lore raw
Quoted 14 lines · Sean Christopherson

The documentation for Co-developed-by is a bit light on details, e.g. it doesn't explicitly state that:

- Multiple Co-developed-by tags are perfectly acceptable
- Co-developed-by and Signed-off-by must be paired together
- SOB ordering should still follow standard sign-off procedure

Lack of explicit direction has resulted in developers taking a variety of approaches, often lacking any intent whatsoever, e.g. scattering SOBs willy-nilly, collecting them all at the end or the beginning, etc... Tweak the wording to make it clear that multiple co-authors are allowed, and document the expectation that standard sign-off procedures are to be followed.

Quoted 8 lines

The use of "original author" has also led to confusion as many patches don't have just one "original" author, e.g. when multiple developers are involved from the genesis of the patch. Remove all usage of "original" and instead call out that Co-developed-by is simply a way to provide attribution in addition to the From tag, i.e. neither tag is intended to imply anything with regard to who did what.

Provide examples to (hopefully) eliminate any ambiguity.

Please add the checkpatch bit to this at the same time.

#2 lore raw
Quoted 22 lines · Joe Perches
Quoted 21 lines · Sean Christopherson

The documentation for Co-developed-by is a bit light on details, e.g. it doesn't explicitly state that:

- Multiple Co-developed-by tags are perfectly acceptable
- Co-developed-by and Signed-off-by must be paired together
- SOB ordering should still follow standard sign-off procedure

Lack of explicit direction has resulted in developers taking a variety of approaches, often lacking any intent whatsoever, e.g. scattering SOBs willy-nilly, collecting them all at the end or the beginning, etc... Tweak the wording to make it clear that multiple co-authors are allowed, and document the expectation that standard sign-off procedures are to be followed.

The use of "original author" has also led to confusion as many patches don't have just one "original" author, e.g. when multiple developers are involved from the genesis of the patch. Remove all usage of "original" and instead call out that Co-developed-by is simply a way to provide attribution in addition to the From tag, i.e. neither tag is intended to imply anything with regard to who did what.

Quoted 3 lines
Quoted 1 line

Provide examples to (hopefully) eliminate any ambiguity.

Please add the checkpatch bit to this at the same time.

Doh, spaced on that. I'll wait for additional feedback before sending v5.

#3 lore raw
In reply to Sean Christopherson
Quoted 52 lines · Sean Christopherson

The documentation for Co-developed-by is a bit light on details, e.g. it doesn't explicitly state that:

- Multiple Co-developed-by tags are perfectly acceptable
- Co-developed-by and Signed-off-by must be paired together
- SOB ordering should still follow standard sign-off procedure

Lack of explicit direction has resulted in developers taking a variety of approaches, often lacking any intent whatsoever, e.g. scattering SOBs willy-nilly, collecting them all at the end or the beginning, etc... Tweak the wording to make it clear that multiple co-authors are allowed, and document the expectation that standard sign-off procedures are to be followed.

The use of "original author" has also led to confusion as many patches don't have just one "original" author, e.g. when multiple developers are involved from the genesis of the patch. Remove all usage of "original" and instead call out that Co-developed-by is simply a way to provide attribution in addition to the From tag, i.e. neither tag is intended to imply anything with regard to who did what.

Provide examples to (hopefully) eliminate any ambiguity.

Cc Tobin C. Harding <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Jani Nikula <[email protected]>
Cc Jorge Ramirez-Ortiz <[email protected]>
Cc Jonathan Cameron <[email protected]>
Cc Joe Perches <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Niklas Cassel <[email protected]>
Cc Jonathan Corbet <[email protected]>

---

v1: https://lkml.kernel.org/r/[email protected]
v2: https://lkml.kernel.org/r/[email protected]
Rewrite the blurb to state standard sign-off procedure should be followed as opposed to dictating the original author's SOB be last.
v3: https://lkml.kernel.org/r/[email protected]
Update a similar blurb in Documentation/process/5.Posting.rst
v4: Rework the blurbs to avoid use of the word "original" [Tobin]

 Documentation/process/5.Posting.rst          | 10 +++--
 Documentation/process/submitting-patches.rst | 40 +++++++++++++++++---
 2 files changed, 41 insertions(+), 9 deletions(-)
Documentation/process/5.Posting.rst +0 -0
index 4213e580f273..d2da09372563 100644

Documentation/process/5.Posting.rst The tags in common use are: · line 221

Quoted 10 lines
Documentation/process/5.Posting.rst +3 -4
@@ -216,10 +216,12 @@ The tags in common use are:
    which can be found in :ref:`Documentation/process/submitting-patches.rst <submittingpatches>`
    Code without a proper signoff cannot be merged into the mainline.
 
- - Co-developed-by: states that the patch was also created by another developer
-   along with the original author.  This is useful at times when multiple
-   people work on a single patch.  Note, this person also needs to have a
-   Signed-off-by: line in the patch as well.
+ - Co-developed-by: states that the patch was co-created by several developers;
+   it is a used to give attribution to co-authors (in addition to the author
+   atrributed by the From: tag) when multiple people work on a single patch.

fwiw

s/atrributed/attributed/

Quoted 67 lines
Documentation/process/5.Posting.rst +3 -0
+   Every Co-developed-by: must be immediately followed by a Signed-off-by: of
+   the associated co-author.  Details and examples can be found in
+   :ref:`Documentation/process/submitting-patches.rst <submittingpatches>`.
 
  - Acked-by: indicates an agreement by another developer (often a
    maintainer of the relevant code) that the patch is appropriate for
Documentation/process/submitting-patches.rst +35 -5
index be7d1829c3af..06db26b12495 100644
@@ -545,10 +545,40 @@ person it names - but it should indicate that this person was copied on the
 patch.  This tag documents that potentially interested parties
 have been included in the discussion.
 
-A Co-developed-by: states that the patch was also created by another developer
-along with the original author.  This is useful at times when multiple people
-work on a single patch.  Note, this person also needs to have a Signed-off-by:
-line in the patch as well.
+Co-developed-by: states that the patch was co-created by multiple developers;
+it is a used to give attribution to co-authors (in addition to the author
+attributed by the From: tag) when several people work on a single patch.  Since
+Co-developed-by: denotes authorship, every Co-developed-by: must be immediately
+followed by a Signed-off-by: of the associated co-author.  Standard sign-off
+procedure applies, i.e. the ordering of Signed-off-by: tags should reflect the
+chronological history of the patch insofar as possible, regardless of whether
+the author is attributed via From: or Co-developed-by:.  Notably, the last
+Signed-off-by: must always be that of the developer submitting the patch.
+
+Note, the From: tag is optional when the From: author is also the person (and
+email) listed in the From: line of the email header.
+
+Example of a patch submitted by the From: author::
+
+	<changelog>
+
+	Co-developed-by: First Co-Author <[email protected]>
+	Signed-off-by: First Co-Author <[email protected]>
+	Co-developed-by: Second Co-Author <[email protected]>
+	Signed-off-by: Second Co-Author <[email protected]>
+	Signed-off-by: From Author <[email protected]>
+
+Example of a patch submitted by a Co-developed-by: author::
+
+	From: From Author <[email protected]>
+
+	<changelog>
+
+	Co-developed-by: Random Co-Author <[email protected]>
+	Signed-off-by: Random Co-Author <[email protected]>
+	Signed-off-by: From Author <[email protected]>
+	Co-developed-by: Submitting Co-Author <[email protected]>
+	Signed-off-by: Submitting Co-Author <[email protected]>
 
 
 13) Using Reported-by:, Tested-by:, Reviewed-by:, Suggested-by: and Fixes:
@@ -696,7 +726,7 @@ A couple of example Subjects::
 The ``from`` line must be the very first line in the message body,
 and has the form:
 
-        From: Original Author <[email protected]>
+        From: Patch Author <[email protected]>
 
 The ``from`` line specifies who will be credited as the author of the
 patch in the permanent changelog.  If the ``from`` line is missing,
Signature · 1 line
2.21.0