[PATCH] scripts/checkpatch: Drop the author extraction in-header check

Akihiko Odaki posted 1 patch 1 week, 6 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20261109-from-v1-1-019dacf55d63@rsg.ci.i.u-tokyo.ac.jp
Maintainers: Chao Liu <chao.liu@processmission.com>
scripts/checkpatch.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] scripts/checkpatch: Drop the author extraction in-header check
Posted by Akihiko Odaki 1 week, 6 days ago
An in-body From: denotes the author when the sender is different.

Signed-off-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>
---
 scripts/checkpatch.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 82f62f602125..2904bd691dc5 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1823,7 +1823,7 @@ sub process {
 		}
 
 # Extract author email for trailer checks
-		if ($in_header_lines && $line =~ /^(?:Author|From):\s*(.*)/) {
+		if ($line =~ /^(?:Author|From):\s*(.*)/) {
 			my $author_info = $1;
 			if ($author_info =~ /<([^>]+)>/) {
 				$author_email = $1;

---
base-commit: 74f7bf4c59e6b6d50dbc6e124d93440be8be4386
change-id: 20261109-from-5be249dd4996

Best regards,
--  
Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>
Re: [PATCH] scripts/checkpatch: Drop the author extraction in-header check
Posted by Marc-André Lureau 1 week, 6 days ago
On Mon, Nov 9, 2026 at 10:37 AM Akihiko Odaki
<odaki@rsg.ci.i.u-tokyo.ac.jp> wrote:
>
> An in-body From: denotes the author when the sender is different.
>
> Signed-off-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>

> ---
>  scripts/checkpatch.pl | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
> index 82f62f602125..2904bd691dc5 100755
> --- a/scripts/checkpatch.pl
> +++ b/scripts/checkpatch.pl
> @@ -1823,7 +1823,7 @@ sub process {
>                 }
>
>  # Extract author email for trailer checks
> -               if ($in_header_lines && $line =~ /^(?:Author|From):\s*(.*)/) {
> +               if ($line =~ /^(?:Author|From):\s*(.*)/) {
>                         my $author_info = $1;
>                         if ($author_info =~ /<([^>]+)>/) {
>                                 $author_email = $1;
>
> ---
> base-commit: 74f7bf4c59e6b6d50dbc6e124d93440be8be4386
> change-id: 20261109-from-5be249dd4996
>
> Best regards,
> --
> Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>
>