On Thu, 2026-12-03 at 00:32 -0500, Rik van Riel wrote:
> 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.
arch/s390/boot/Makefile has the answer, the s390 boot
code is built for an older version of the CPU than
the rest of the kernel, so it can print an error when
booted on a system that is too old.
That explains the copied code.
Reviewed-by: Rik van Riel <[email protected]>