2024-04-19 22:28:35

by Nam Cao

[permalink] [raw]
Subject: [PATCH v2] checkpatch: add "Reported-and-tested-by:" tag

The tag "Reported-and-tested-by:" is used all the time. Add this tag.

Signed-off-by: Nam Cao <[email protected]>
---
v2: add missing colon

scripts/checkpatch.pl | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 9c4c4a61bc83..e2034da2aeb0 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -618,6 +618,7 @@ our $signature_tags = qr{(?xi:
Tested-by:|
Reviewed-by:|
Reported-by:|
+ Reported-and-tested-by:|
Suggested-by:|
To:|
Cc:
@@ -712,7 +713,7 @@ sub find_standard_signature {
my ($sign_off) = @_;
my @standard_signature_tags = (
'Signed-off-by:', 'Co-developed-by:', 'Acked-by:', 'Tested-by:',
- 'Reviewed-by:', 'Reported-by:', 'Suggested-by:'
+ 'Reviewed-by:', 'Reported-by:', 'Suggested-by:', 'Reported-and-tested-by:'
);
foreach my $signature (@standard_signature_tags) {
return $signature if (get_edit_distance($sign_off, $signature) <= 2);
--
2.39.2



2024-04-20 16:23:03

by Joe Perches

[permalink] [raw]
Subject: Re: [PATCH v2] checkpatch: add "Reported-and-tested-by:" tag

On Sat, 2024-04-20 at 00:28 +0200, Nam Cao wrote:
> The tag "Reported-and-tested-by:" is used all the time. Add this tag.

General nack:

I think that combined tags should be avoided

see:

Documentation/process/maintainer-tip.rst:Please do not use combined tags, eg. ``Reported-and-tested-by``, as
Documentation/process/maintainer-tip.rst-they just complicate automated extraction of tags.