Import Linux commit d1db4118489f ("checkpatch: add support for Assisted-by tag"). (I should have used AI for this, since it'd be fun to include that tag on this tag-enabling patch, but sometimes I still do my own homework!) Signed-off-by: Andrew Jones --- scripts/checkpatch.pl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index e858261c95a8..653bec1f6ea5 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -626,6 +626,7 @@ our $signature_tags = qr{(?xi: Reviewed-by:| Reported-by:| Suggested-by:| + Assisted-by:| To:| Cc: )}; @@ -3073,6 +3074,15 @@ sub process { } } + # Assisted-by uses AGENT_NAME:MODEL_VERSION format, not email + if ($sign_off =~ /^Assisted-by:/i) { + if ($email !~ /^\S+:\S+/) { + WARN("BAD_SIGN_OFF", + "Assisted-by expects 'AGENT_NAME:MODEL_VERSION [TOOL1] [TOOL2]' format\n" . $herecurr); + } + next; + } + my ($email_name, $name_comment, $email_address, $comment) = parse_email($email); my $suggested_email = format_email(($email_name, $name_comment, $email_address, $comment)); if ($suggested_email eq "") { -- 2.43.0