]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
treewide: Explicitly include the x86 CPUID headers
authorAhmed S. Darwish <darwi@linutronix.de>
Fri, 27 Mar 2026 02:15:18 +0000 (03:15 +0100)
committerBorislav Petkov (AMD) <bp@alien8.de>
Wed, 6 May 2026 12:29:59 +0000 (14:29 +0200)
commit7b49a3fb69e785a2425c8dc7dbd0779a0a4c0eb2
treea3c622a20792f24f165dfb49a64caa2b79600624
parent2ed46bccac394fd960c20dd9dc4c5fe0a9d7c0ef
treewide: Explicitly include the x86 CPUID headers

Modify all CPUID call sites which implicitly include any of the CPUID
headers to explicitly include them instead.

For KVM's reverse_cpuid.h, just include <asm/cpuid/types.h> since it
references the CPUID_EAX..EDX symbols without using the CPUID APIs.

Note, this allows removing the inclusion of <asm/cpuid/api.h> from within
<asm/processor.h> next.  That allows the CPUID API headers to include
<asm/processor.h> without introducing a circular dependency.

Signed-off-by: Ahmed S. Darwish <darwi@linutronix.de>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/20260327021645.555257-1-darwi@linutronix.de
70 files changed:
arch/x86/boot/compressed/pgtable_64.c
arch/x86/boot/startup/sme.c
arch/x86/coco/tdx/tdx.c
arch/x86/events/amd/core.c
arch/x86/events/amd/ibs.c
arch/x86/events/amd/lbr.c
arch/x86/events/amd/power.c
arch/x86/events/amd/uncore.c
arch/x86/events/intel/core.c
arch/x86/events/intel/lbr.c
arch/x86/events/zhaoxin/core.c
arch/x86/include/asm/acrn.h
arch/x86/include/asm/microcode.h
arch/x86/include/asm/xen/hypervisor.h
arch/x86/kernel/apic/apic.c
arch/x86/kernel/cpu/amd.c
arch/x86/kernel/cpu/centaur.c
arch/x86/kernel/cpu/hygon.c
arch/x86/kernel/cpu/mce/core.c
arch/x86/kernel/cpu/mce/inject.c
arch/x86/kernel/cpu/microcode/amd.c
arch/x86/kernel/cpu/microcode/core.c
arch/x86/kernel/cpu/microcode/intel.c
arch/x86/kernel/cpu/mshyperv.c
arch/x86/kernel/cpu/resctrl/core.c
arch/x86/kernel/cpu/resctrl/monitor.c
arch/x86/kernel/cpu/scattered.c
arch/x86/kernel/cpu/sgx/driver.c
arch/x86/kernel/cpu/sgx/main.c
arch/x86/kernel/cpu/topology_amd.c
arch/x86/kernel/cpu/topology_common.c
arch/x86/kernel/cpu/topology_ext.c
arch/x86/kernel/cpu/transmeta.c
arch/x86/kernel/cpu/vmware.c
arch/x86/kernel/cpu/zhaoxin.c
arch/x86/kernel/cpuid.c
arch/x86/kernel/jailhouse.c
arch/x86/kernel/kvm.c
arch/x86/kernel/paravirt.c
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/spte.c
arch/x86/kvm/reverse_cpuid.h
arch/x86/kvm/svm/sev.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/vmx/pmu_intel.c
arch/x86/kvm/vmx/sgx.c
arch/x86/kvm/vmx/vmx.c
arch/x86/mm/pti.c
arch/x86/pci/xen.c
arch/x86/xen/enlighten_hvm.c
arch/x86/xen/pmu.c
arch/x86/xen/time.c
drivers/char/agp/efficeon-agp.c
drivers/cpufreq/longrun.c
drivers/cpufreq/powernow-k7.c
drivers/cpufreq/powernow-k8.c
drivers/cpufreq/speedstep-lib.c
drivers/firmware/efi/libstub/x86-5lvl.c
drivers/gpu/drm/gma500/mmu.c
drivers/hwmon/fam15h_power.c
drivers/hwmon/k10temp.c
drivers/hwmon/k8temp.c
drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c
drivers/ras/amd/fmpm.c
drivers/thermal/intel/intel_hfi.c
drivers/thermal/intel/x86_pkg_temp_thermal.c
drivers/virt/acrn/hsm.c
drivers/xen/events/events_base.c
drivers/xen/grant-table.c
drivers/xen/xenbus/xenbus_xs.c