Skip to contentSkip to conversation

checkpatch: allow multiple Reported-by tags

PATCH New Ricardo Ribalda 1 participant 1 message Dec 2, 2024 Checkpatch

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 checkpatch: allow multiple Reported-by tags

If a patch has been reported by multiple individuals, allow a single Closes tag.

Given this patch:

: Reported-by: kernel test robot <[email protected]>
: Closes: https://lore.kernel.org/r/[email protected]/
: Reported-by: Dan Carpenter <[email protected]>
: Closes: https://lore.kernel.org/r/[email protected]/

Allow also this:

: Reported-by: kernel test robot <[email protected]>
: Reported-by: Dan Carpenter <[email protected]>
: Closes: https://lore.kernel.org/r/[email protected]/

---
 scripts/checkpatch.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/checkpatch.pl +1 -1
index 9eed3683ad76..d6a79993fdf1 100755
@@ -3189,7 +3189,7 @@ sub process {
 				if (!defined $lines[$linenr]) {
 					WARN("BAD_REPORTED_BY_LINK",
 					     "Reported-by: should be immediately followed by Closes: with a URL to the report\n" . $herecurr . "\n");
-				} elsif ($rawlines[$linenr] !~ /^closes:\s*/i) {
+				} elsif ($rawlines[$linenr] !~ /^closes:\s*/i && $rawlines[$linenr] !~ /^reported(?:|-and-tested)-by:\s*/i) {
 					WARN("BAD_REPORTED_BY_LINK",
 					     "Reported-by: should be immediately followed by Closes: with a URL to the report\n" . $herecurr . $rawlines[$linenr] . "\n");
 				}

---
base-commit: 40384c840ea1944d7c5a392e8975ed088ecf0b37
change-id: 20241202-multi-close-3e23042d5185

Best regards,

Signature · 1 line
Ricardo Ribalda <[email protected]>