Skip to contentSkip to conversation

checkpatch: move duplicate sign off to separate warning type

PATCH Superseded Dmitry Baryshkov 2 participants 3 messages Sep 5, 2022 – Jan 23, 2023 Checkpatch

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 checkpatch: move duplicate sign off to separate warning type

Some maintainers prefer to allow duplicate signatures if that provides additional details about the patch flow. E.g. if the original patch author pulls the patch from the patchwork into the kernel branch, this can result in duplicate SOB tags from him, however this reflects the patch flow (one SOB for being the author, one SOB for pulling the patch, adding (and maybe fixing) tags and pushing the patch further.

To facilitate easily handling this kind of warnings, separate duplicate SOBs into the separate warning class ('DUPLICATE_SIGN_OFF').

---
 scripts/checkpatch.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/checkpatch.pl +1 -1
index 79e759aac543..f95d4ac19901 100755
@@ -3115,7 +3115,7 @@ sub process {
 			$sig_nospace =~ s/\s//g;
 			$sig_nospace = lc($sig_nospace);
 			if (defined $signatures{$sig_nospace}) {
-				WARN("BAD_SIGN_OFF",
+				WARN("DUPLICATE_SIGN_OFF",
 				     "Duplicate signature\n" . $herecurr);
 			} else {
 				$signatures{$sig_nospace} = 1;
Signature · 1 line
2.35.1
maintainer
#1 lore raw
Quoted 6 lines · Dmitry Baryshkov

Some maintainers prefer to allow duplicate signatures if that provides additional details about the patch flow. E.g. if the original patch author pulls the patch from the patchwork into the kernel branch, this can result in duplicate SOB tags from him, however this reflects the patch flow (one SOB for being the author, one SOB for pulling the patch, adding (and maybe fixing) tags and pushing the patch further.

I think that's poor process, but whatever...

Quoted 23 lines

To facilitate easily handling this kind of warnings, separate duplicate SOBs into the separate warning class ('DUPLICATE_SIGN_OFF').

---
 scripts/checkpatch.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/checkpatch.pl +1 -1
index 79e759aac543..f95d4ac19901 100755
@@ -3115,7 +3115,7 @@ sub process {
 			$sig_nospace =~ s/\s//g;
 			$sig_nospace = lc($sig_nospace);
 			if (defined $signatures{$sig_nospace}) {
-				WARN("BAD_SIGN_OFF",
+				WARN("DUPLICATE_SIGN_OFF",
 				     "Duplicate signature\n" . $herecurr);
 			} else {
 				$signatures{$sig_nospace} = 1;
#2 lore raw
Quoted 10 lines · Joe Perches
Quoted 6 lines · Dmitry Baryshkov

Some maintainers prefer to allow duplicate signatures if that provides additional details about the patch flow. E.g. if the original patch author pulls the patch from the patchwork into the kernel branch, this can result in duplicate SOB tags from him, however this reflects the patch flow (one SOB for being the author, one SOB for pulling the patch, adding (and maybe fixing) tags and pushing the patch further.

I think that's poor process, but whatever...

Gracious ping. We'd like to ask to get this in or to understand how to properly handle/modify our process.
Thank you.

Quoted 25 lines
Quoted 24 lines

To facilitate easily handling this kind of warnings, separate duplicate SOBs into the separate warning class ('DUPLICATE_SIGN_OFF').

---
 scripts/checkpatch.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/checkpatch.pl +1 -1
index 79e759aac543..f95d4ac19901 100755
@@ -3115,7 +3115,7 @@ sub process {
                      $sig_nospace =~ s/\s//g;
                      $sig_nospace = lc($sig_nospace);
                      if (defined $signatures{$sig_nospace}) {
-                             WARN("BAD_SIGN_OFF",
+                             WARN("DUPLICATE_SIGN_OFF",
                                   "Duplicate signature\n" . $herecurr);
                      } else {
                              $signatures{$sig_nospace} = 1;
Signature · 2 lines
With best wishes
Dmitry