Re: [PATCH] KVM: x86/mmu: Include mmu.h in spte.h

From: Sean Christopherson
Date: Fri Aug 25 2023 - 15:02:32 EST


On Tue, 08 Aug 2023 15:40:59 -0700, Sean Christopherson wrote:
> Explicitly include mmu.h in spte.h instead of relying on the "parent" to
> include mmu.h. spte.h references a variety of macros and variables that
> are defined/declared in mmu.h, and so including spte.h before (or instead
> of) mmu.h will result in build errors, e.g.
>
> arch/x86/kvm/mmu/spte.h: In function ‘is_mmio_spte’:
> arch/x86/kvm/mmu/spte.h:242:23: error: ‘enable_mmio_caching’ undeclared
> 242 | likely(enable_mmio_caching);
> | ^~~~~~~~~~~~~~~~~~~
>
> [...]

Applied to kvm-x86 mmu, thanks!

[1/1] KVM: x86/mmu: Include mmu.h in spte.h
https://github.com/kvm-x86/linux/commit/bfd926291c58

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