summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2026-08-04 12:13:44 -0400
committerJonathan Corbet <corbet@lwn.net>2026-08-05 12:53:21 -0600
commit2a8d68338ee77e200895f2697c56fd00094767f7 (patch)
tree4419b0900cc5084215ec3359f42b7d2a53267f41 /scripts
parent895329c37cb8b89af0747445eace52695db03d7b (diff)
downloadlinux-next-2a8d68338ee77e200895f2697c56fd00094767f7.tar.gz
linux-next-2a8d68338ee77e200895f2697c56fd00094767f7.zip
checkpatch.pl: adapt to new Assisted-by: format
There is a new format for the 'Assisted-by:' tag. Change checkpatch.pl to just check that it has a value rather than testing for a specific format. Assisted-by: LLM Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Message-ID: <20260804-checkpatch-v1-1-27f29c79a46f@kernel.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/checkpatch.pl7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 2b7a42bbdd94..7961d9584bc5 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -3124,11 +3124,12 @@ sub process {
}
}
- # Assisted-by uses AGENT_NAME:MODEL_VERSION format, not email
+ # Assisted-by uses a free-form value (e.g. "LLM"), not an
+ # email address, so skip the email format checks below.
if ($sign_off =~ /^Assisted-by:/i) {
- if ($email !~ /^\S+:\S+/) {
+ if ($email =~ /^\s*$/) {
WARN("BAD_SIGN_OFF",
- "Assisted-by expects 'AGENT_NAME:MODEL_VERSION [TOOL1] [TOOL2]' format\n" . $herecurr);
+ "Assisted-by requires a value\n" . $herecurr);
}
next;
}