Re: [PATCH] arch/Kconfig: fix dead conditions by removing dead options

From: Arnd Bergmann

Date: Fri Jul 31 2026 - 06:42:19 EST


On Wed, Jul 29, 2026, at 23:05, Julian Braha wrote:
> These two 'int' options:
>
> ARCH_MMAP_RND_BITS_DEFAULT
> ARCH_MMAP_RND_COMPAT_BITS_DEFAULT
>
> are used directly as conditions for defaults. 'int' options should not be
> used as conditions, because they will always evaluate to false.
>
> Let's remove these options, because they are not used anywhere else.
>
> This dead code was found by kconfirm, a static analysis tool for Kconfig.
>
> Signed-off-by: Julian Braha <julianbraha@xxxxxxxxx>

Reviewed-by: Arnd Bergmann <arnd@xxxxxxxx>