Re: [EXTERNAL] [PATCH] x86: Fix build regression with CONFIG_KEXEC_JUMP enabled

From: Borislav Petkov
Date: Mon Dec 09 2024 - 12:18:47 EST


On Mon, Dec 09, 2024 at 05:07:06PM +0000, David Woodhouse wrote:
> I suspect it would be less ugly overall if we #ifdef out the whole of
> the preserve_context code path when CONFIG_KEXEC_JUMP isn't enabled,
> rather than only the various parts of it that actually cause compile
> failures, leaving a very confusing set of nonsense dead code actually
> being compiled in.

$ git grep CONFIG_KEXEC_JUMP *.[chS] | wc -l
10

That's mostly C code. You want to push the ifdeffery into the asm?

> But that's a potential cleanup for later; I'm standing in a massive pile of
> yak hair already...

You too?! I can't see you from all yak hair around me ... :-P

But yeah, one fine day...

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette