Re: [PATCH] nohz: replace dead select with choice default

From: Nicolas Schier

Date: Sun Aug 02 2026 - 15:42:51 EST


On Sat, Aug 01, 2026 at 05:01:40PM +0100, Julian Braha wrote:
> 'select' does not work on config options in a 'choice', so currently the
> 'select VIRT_CPU_ACCOUNTING_GEN' for NO_HZ_FULL is dead, with the choice
> option VIRT_CPU_ACCOUNTING_GEN only being enabled when NO_HZ_FULL=y because
> the other choice members depend on NO_HZ_FULL=n.
>
> Let's remove the dead select, and encode this relationship as a default of
> the choice, instead.
>
> This dead select was found by kconfirm, a static analysis tool for Kconfig.
>
> Signed-off-by: Julian Braha <julianbraha@xxxxxxxxx>
> ---
> init/Kconfig | 1 +
> kernel/time/Kconfig | 1 -
> 2 files changed, 1 insertion(+), 1 deletion(-)
>

Thanks!

Reviewed-by: Nicolas Schier <nsc@xxxxxxxxxx>