Re: [PATCH] arch/Kconfig: fix dead conditions by removing dead options
Julian Braha <[email protected]>
| Newsgroups | gmane.linux.kernel |
|---|---|
| Message-ID | <[email protected]> |
On 7/31/26 11:41, Arnd Bergmann wrote: > 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 <[email protected]> > Reviewed-by: Arnd Bergmann <[email protected]> Sorry to bother, but whose tree would this patch go into? I'd like to add some type checking into Kconfig, but I need to wait until this patch is merged before making this a hard error. - Julian Braha