* + lib-cleanup-fake-tristates-in-kconfig.patch added to mm-nonmm-unstable branch
@ 2026-08-29 23:44 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2026-08-29 23:44 UTC (permalink / raw)
To: mm-commits, julia.lawall, jani.nikula, arnd, julianbraha, akpm
The patch titled
Subject: lib: cleanup "fake" tristates in Kconfig
has been added to the -mm mm-nonmm-unstable branch. Its filename is
lib-cleanup-fake-tristates-in-kconfig.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/lib-cleanup-fake-tristates-in-kconfig.patch
This patch will later appear in the mm-nonmm-unstable branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via various
branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there most days
------------------------------------------------------
From: Julian Braha <julianbraha@gmail.com>
Subject: lib: cleanup "fake" tristates in Kconfig
Date: Mon, 17 Aug 2026 22:03:11 +0100
These 7 DECOMPRESS_ options (e.g. DECOMPRESS_GZIP) currently have the
tristate type, but can never be set to M. Their only valid values are Y
and N, making them effectively booleans.
Let's make their types more accurate by changing them to 'bool'. Note
that this is only a code cleanup, there is no functional change.
These bistates were found by kconfirm, a static analysis tool for Kconfig.
Link: https://lore.kernel.org/20260817210311.2142999-1-julianbraha@gmail.com
Signed-off-by: Julian Braha <julianbraha@gmail.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Julia Lawall <julia.lawall@inria.fr>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
lib/Kconfig | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
--- a/lib/Kconfig~lib-cleanup-fake-tristates-in-kconfig
+++ a/lib/Kconfig
@@ -219,29 +219,29 @@ source "lib/xz/Kconfig"
#
config DECOMPRESS_GZIP
select ZLIB_INFLATE
- tristate
+ bool
config DECOMPRESS_BZIP2
- tristate
+ bool
config DECOMPRESS_LZMA
- tristate
+ bool
config DECOMPRESS_XZ
select XZ_DEC
- tristate
+ bool
config DECOMPRESS_LZO
select LZO_DECOMPRESS
- tristate
+ bool
config DECOMPRESS_LZ4
select LZ4_DECOMPRESS
- tristate
+ bool
config DECOMPRESS_ZSTD
select ZSTD_DECOMPRESS
- tristate
+ bool
#
# Generic allocator support is selected if needed
_
Patches currently in -mm which might be from julianbraha@gmail.com are
lib-cleanup-fake-tristates-in-kconfig.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-29 23:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-29 23:44 + lib-cleanup-fake-tristates-in-kconfig.patch added to mm-nonmm-unstable branch 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.