* [to-be-updated] get_maintainer-lazy-load-json-pp-only-when-json-is-used.patch removed from -mm tree
@ 2026-10-30 16:17 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2026-10-30 16:17 UTC (permalink / raw)
To: mm-commits, stable, sashal, joe, oleg, akpm
The quilt patch titled
Subject: get_maintainer: lazy load JSON::PP only when --json is used
has been removed from the -mm tree. Its filename was
get_maintainer-lazy-load-json-pp-only-when-json-is-used.patch
This patch was dropped because an updated version will be issued
------------------------------------------------------
From: Oleg Nesterov <oleg@redhat.com>
Subject: get_maintainer: lazy load JSON::PP only when --json is used
Date: Fri, 30 Oct 2026 16:43:48 +0100
After commit 09d8b39563e8 ("get_maintainer: add --json output mode"),
I can no longer use get_maintainer.pl; it fails at compile time if
JSON::PP is not installed even when --json is not requested.
This module is only needed with the --json option. Use "require" to
load this module dynamically inside the "if ($json)" block instead.
Link: https://lore.kernel.org/auS7NOsyw7pJ7rbF@redhat.com
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Joe Perches <joe@perches.com>
Cc: Sasha Levin <sashal@kernel.org>
Cc: <stable@vger.kernel.org>
---
scripts/get_maintainer.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/scripts/get_maintainer.pl~get_maintainer-lazy-load-json-pp-only-when-json-is-used
+++ a/scripts/get_maintainer.pl
@@ -21,7 +21,6 @@ use Cwd;
use File::Find;
use File::Spec::Functions;
use open qw(:std :encoding(UTF-8));
-use JSON::PP;
my $cur_path = fastgetcwd() . '/';
my $lk_path = "./";
@@ -685,6 +684,7 @@ if ($json) {
$result{web} = \@web if ($web);
$result{bug} = \@bug if ($bug);
+ require JSON::PP;
my $json_encoder = JSON::PP->new->canonical->utf8;
print($json_encoder->encode(\%result) . "\n");
} else {
_
Patches currently in -mm which might be from oleg@redhat.com are
proc-use-pid_has_task-in-proc_inode_is_dead.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-30 16:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-30 16:17 [to-be-updated] get_maintainer-lazy-load-json-pp-only-when-json-is-used.patch removed from -mm tree Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.