Re: [PATCH] checkpatch: add support for Assisted-by tag
From: Joe Perches
Date: Wed Mar 11 2026 - 11:33:39 EST
On 2026-03-11 08:20, Sasha Levin wrote:
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:
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl[]
@@ -3105,6 +3106,13 @@ 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);
+ }
I believe you could use next instead of this odd indentation avoidance.