From: Greg Kroah-Hartman Date: Mon, 20 Apr 2026 13:40:42 +0000 (+0200) Subject: 6.1-stable patches X-Git-Tag: v6.12.83~31 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=81fdd8e9c8992e7814156243c5b72640eb8c6159;p=thirdparty%2Fkernel%2Fstable-queue.git 6.1-stable patches added patches: checkpatch-add-support-for-assisted-by-tag.patch --- diff --git a/queue-6.1/checkpatch-add-support-for-assisted-by-tag.patch b/queue-6.1/checkpatch-add-support-for-assisted-by-tag.patch new file mode 100644 index 0000000000..b006d05a60 --- /dev/null +++ b/queue-6.1/checkpatch-add-support-for-assisted-by-tag.patch @@ -0,0 +1,63 @@ +From d1db4118489fffd2b2f612140b7acbb477880839 Mon Sep 17 00:00:00 2001 +From: Sasha Levin +Date: Wed, 11 Mar 2026 17:58:17 -0400 +Subject: checkpatch: add support for Assisted-by tag + +From: Sasha Levin + +commit d1db4118489fffd2b2f612140b7acbb477880839 upstream. + +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 +Reported-by: Bart Van Assche +Acked-by: Joe Perches +Cc: Andy Whitcroft +Cc: Dwaipayan Ray +Cc: Jonathan Corbet +Cc: Lukas Bulwahn +Signed-off-by: Andrew Morton +Signed-off-by: Greg Kroah-Hartman +--- + scripts/checkpatch.pl | 10 ++++++++++ + 1 file changed, 10 insertions(+) + +--- a/scripts/checkpatch.pl ++++ b/scripts/checkpatch.pl +@@ -616,6 +616,7 @@ our $signature_tags = qr{(?xi: + Reviewed-by:| + Reported-by:| + Suggested-by:| ++ Assisted-by:| + To:| + Cc: + )}; +@@ -3031,6 +3032,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 "") { diff --git a/queue-6.1/series b/queue-6.1/series index ce28636cff..e66e588e15 100644 --- a/queue-6.1/series +++ b/queue-6.1/series @@ -97,3 +97,4 @@ bonding-check-xdp-prog-when-set-bond-mode.patch drm-amdgpu-remove-two-invalid-bug_on-s.patch nf_tables-nft_dynset-fix-possible-stateful-expressio.patch rxrpc-proc-size-address-buffers-for-pispc-output.patch +checkpatch-add-support-for-assisted-by-tag.patch