Re: [PATCH 3/5] x86/boot: Remove hardcoded boot_param constants
From: Borislav Petkov
Date: Sat Oct 03 2026 - 18:11:59 EST
On Fri, Jul 24, 2026 at 01:22:29PM -0500, Tom Lendacky wrote:
> Why not sizeof(*boot_params) here and each place below instead of
> hardcoding the struct?
I know you prefer that but sizeof(struct boot_params) tells you the type
you're measuring while the ptr dereffed one will need you to go find what type
the variable after the "*" is.
IOW, his is more readable IMO.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette