Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

checkpatch: add support for Assisted-by tag

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@kernel.org>
Reported-by: Bart Van Assche <bvanassche@acm.org>
Acked-by: Joe Perches <joe@perches.com>
Cc: Andy Whitcroft <apw@canonical.com>
Cc: Dwaipayan Ray <dwaipayanray1@gmail.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Sasha Levin and committed by
Andrew Morton
d1db4118 ecfad171

+10
+10
scripts/checkpatch.pl
··· 641 641 Reviewed-by:| 642 642 Reported-by:| 643 643 Suggested-by:| 644 + Assisted-by:| 644 645 To:| 645 646 Cc: 646 647 )}; ··· 3104 3103 $fixed[$fixlinenr] = 3105 3104 "$ucfirst_sign_off $email"; 3106 3105 } 3106 + } 3107 + 3108 + # Assisted-by uses AGENT_NAME:MODEL_VERSION format, not email 3109 + if ($sign_off =~ /^Assisted-by:/i) { 3110 + if ($email !~ /^\S+:\S+/) { 3111 + WARN("BAD_SIGN_OFF", 3112 + "Assisted-by expects 'AGENT_NAME:MODEL_VERSION [TOOL1] [TOOL2]' format\n" . $herecurr); 3113 + } 3114 + next; 3107 3115 } 3108 3116 3109 3117 my ($email_name, $name_comment, $email_address, $comment) = parse_email($email);