]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
x86/cpu: Do not include the CPUID API header in asm/processor.h
authorAhmed S. Darwish <darwi@linutronix.de>
Fri, 27 Mar 2026 02:15:19 +0000 (03:15 +0100)
committerBorislav Petkov (AMD) <bp@alien8.de>
Fri, 8 May 2026 21:10:10 +0000 (23:10 +0200)
asm/processor.h includes asm/cpuid/api.h but it does not need it.

Remove the include.

This allows the CPUID APIs header to include <asm/processor.h> at a later
step without introducing a circular dependency.

Note, all call sites which implicitly included the CPUID API through
<asm/processor.h> have been modified to explicitly include the CPUID APIs
instead.

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
arch/x86/include/asm/processor.h

index 10b5355b323e24af9e5ba07556a620200ee6dc12..4f4356b1315847d89369165e28c40121b4a7189c 100644 (file)
@@ -16,7 +16,6 @@ struct vm86;
 #include <uapi/asm/sigcontext.h>
 #include <asm/current.h>
 #include <asm/cpufeatures.h>
-#include <asm/cpuid/api.h>
 #include <asm/page.h>
 #include <asm/pgtable_types.h>
 #include <asm/percpu.h>