[Devel] [PATCH hci-8.1 1/2] ms/checkpatch: add support for Assisted-by tag

Konstantin Khorenko khorenko at virtuozzo.com
Sat Oct 17 00:33:32 MSK 2026


From: Sasha Levin <sashal at kernel.org>

The Assisted-by tag was introduced in
Documentation/process/coding-assistants.rst for attributing AI tool
contributions to kernel patches.  However, checkpatch.pl did not recognize
this tag, causing two issues:

  WARNING: Non-standard signature: Assisted-by:
  ERROR: Unrecognized email address: 'AGENT_NAME:MODEL_VERSION'

Fix this by:
1. Adding Assisted-by to the recognized $signature_tags list
2. Skipping email validation for Assisted-by lines since they use the
   AGENT_NAME:MODEL_VERSION format instead of an email address
3. Warning when the Assisted-by value doesn't match the expected format

Link: https://lkml.kernel.org/r/20260311215818.518930-1-sashal@kernel.org
Signed-off-by: Sasha Levin <sashal at kernel.org>
Reported-by: Bart Van Assche <bvanassche at acm.org>
Acked-by: Joe Perches <joe at perches.com>
Cc: Andy Whitcroft <apw at canonical.com>
Cc: Dwaipayan Ray <dwaipayanray1 at gmail.com>
Cc: Jonathan Corbet <corbet at lwn.net>
Cc: Lukas Bulwahn <lukas.bulwahn at gmail.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
(cherry picked from commit d1db4118489fffd2b2f612140b7acbb477880839)

Feature: fix ms/scripts
Assisted-by: LLM
Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
 scripts/checkpatch.pl | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index e7e6114535f04..c30ff25f70182 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -622,6 +622,7 @@ our $zero_initializer = qr{(?:(?:0[xX])?0+$Int_type?|NULL|false)\b};
 	Reviewed-by:|
 	Reported-by:|
 	Suggested-by:|
+	Assisted-by:|
 	To:|
 	Cc:
 )};
@@ -3072,6 +3073,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



More information about the Devel mailing list