Re: [PATCH v2] x86/boot/compressed: use boot_kstrtoul() for hugepages= parsing
From: Borislav Petkov
Date: Mon May 04 2026 - 08:15:03 EST
On Mon, May 04, 2026 at 12:27:50PM +0200, Thorsten Blum wrote:
> Keep in mind that max_gb_huge_pages is an unsigned long (not ull), so I
> think boot_kstrtoul() is the better fit.
>
> The last sentence in my commit message also mentions that
> boot_kstrtoul() avoids casting the parsed value from ull to ul.
Bah, what a mess that code is...
Ok, lemme apply it as is.
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette