Re: [PATCH] checkpatch: add support for Assisted-by tag

From: Sasha Levin

Date: Wed Mar 11 2026 - 12:18:20 EST


On Wed, Mar 11, 2026 at 08:33:26AM -0700, Joe Perches wrote:
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.

Let me figure it out. My perl-fu is... questionable.

--
Thanks,
Sasha