[tip: x86/cpu] x86/cpu: Do not include the CPUID API header in asm/processor.h

From: tip-bot2 for Ahmed S. Darwish

Date: Fri May 08 2026 - 18:01:08 EST


The following commit has been merged into the x86/cpu branch of tip:

Commit-ID: 55cbcb6731bbea264716ad57eeedc0f98ec176c5
Gitweb: https://git.kernel.org/tip/55cbcb6731bbea264716ad57eeedc0f98ec176c5
Author: Ahmed S. Darwish <darwi@xxxxxxxxxxxxx>
AuthorDate: Fri, 27 Mar 2026 03:15:19 +01:00
Committer: Borislav Petkov (AMD) <bp@xxxxxxxxx>
CommitterDate: Fri, 08 May 2026 23:10:10 +02:00

x86/cpu: Do not include the CPUID API header in asm/processor.h

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@xxxxxxxxxxxxx>
Signed-off-by: Borislav Petkov (AMD) <bp@xxxxxxxxx>
Link: https://lore.kernel.org/20260327021645.555257-1-darwi@xxxxxxxxxxxxx
---
arch/x86/include/asm/processor.h | 1 -
1 file changed, 1 deletion(-)

diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h
index 10b5355..4f4356b 100644
--- a/arch/x86/include/asm/processor.h
+++ b/arch/x86/include/asm/processor.h
@@ -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>