[PATCH RFC v2 03/54] s390/boot: parse boolean parameters like the kernel

Rik van Riel riel at surriel.com
Wed Dec 2 21:32:47 PST 2026


On Thu, 2026-11-26 at 13:14 +0200, Mike Rapoport (Microsoft) wrote:
> The decompressor has a copy of kstrtobool() that takes only y/n, 1/0
> and
> on/off. The kernel's kstrtobool() also takes true/false since
> 0d6ea3ac94ca
> ("lib/kstrtox.c: add "false"/"true" support to kstrtobool()") and
> enabled/disabled since ae5b3500856f ("kstrtox: add support for
> enabled and
> disabled in kstrtobool()").
> 
> The decompressor ignores these values, so "cmma=false" leaves CMMA
> enabled
> and "prot_virt=true" does not enable it.
> 
> Copy kstrtobool() from lib/kstrtox.c.

Wait, why does this need a copy?

Is there some reason it cannot use the one
in lib/kstrtox.c?

If so, that reason should probably be documented.

-- 
All Rights Reversed.



More information about the linux-arm-kernel mailing list