diff options
| author | Sean Christopherson <[email protected]> | 2022-11-10 20:17:07 +0000 |
|---|---|---|
| committer | Peter Zijlstra <[email protected]> | 2022-11-16 09:12:56 +0000 |
| commit | 2d08a893b87cf9b2f9dbb3afaff60ca4530d55a2 (patch) | |
| tree | 3b3b41060e7b69d3e03fd92430382bc01019a233 /lib/fault-inject.c | |
| parent | x86/cpufeatures: Move X86_FEATURE_CALL_DEPTH from bit 18 to bit 19 of word 11... (diff) | |
| download | kernel-2d08a893b87cf9b2f9dbb3afaff60ca4530d55a2.tar.gz kernel-2d08a893b87cf9b2f9dbb3afaff60ca4530d55a2.zip | |
x86/debug: Include percpu.h in debugreg.h to get DECLARE_PER_CPU() et al
Include percpu.h to pick up the definition of DECLARE_PER_CPU() and
friends instead of relying on the parent to provide the #include. E.g.
swapping the order of includes in arch/x86/kvm/vmx/nested.c (simulating
KVM code movement being done for other purposes) results in build errors:
In file included from arch/x86/kvm/vmx/nested.c:3:
arch/x86/include/asm/debugreg.h:9:32: error: unknown type name âcpu_dr7â=99
9 | DECLARE_PER_CPU(unsigned long, cpu_dr7);
| ^~~~~~~
Signed-off-by: Sean Christopherson <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'lib/fault-inject.c')
0 files changed, 0 insertions, 0 deletions
