Re: [PATCH] KVM: x86: Immediately fail the build when possible if required #define is missing

From: Sean Christopherson

Date: Fri Apr 03 2026 - 11:23:51 EST


On Mon, 02 Mar 2026 13:26:19 -0800, Sean Christopherson wrote:
> Guard usage of the must-be-defined macros in KVM's multi-include headers
> with the existing #ifdefs that attempt to alert the developer to a missing
> macro, and spit out an explicit #error message if a macro is missing, as
> referencing the missing macro completely defeats the purpose of the #ifdef
> (the compiler spews a ton of error messages and buries the targeted error
> message).
>
> [...]

Applied to kvm-x86 misc, many weeks ago.

[1/1] KVM: x86: Immediately fail the build when possible if required #define is missing
https://github.com/kvm-x86/linux/commit/55be358e17af

--
https://github.com/kvm-x86/linux/tree/next