]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
x86/cpuid: Include <linux/build_bug.h> in <asm/cpuid.h>
authorAhmed S. Darwish <darwi@linutronix.de>
Tue, 4 Mar 2025 08:51:15 +0000 (09:51 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 4 Mar 2025 10:17:33 +0000 (11:17 +0100)
<asm/cpuid.h> uses static_assert() at multiple locations but it does not
include the CPP macro's definition at linux/build_bug.h.

Include the needed header to make <asm/cpuid.h> self-sufficient.

This gets triggered when cpuid.h is included in new C files, which is to
be done in further commits.

Fixes: 43d86e3cd9a7 ("x86/cpu: Provide cpuid_read() et al.")
Signed-off-by: Ahmed S. Darwish <darwi@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20250304085152.51092-5-darwi@linutronix.de
arch/x86/include/asm/cpuid.h

index b2b9b4ef3dae1ac0c585bee20da47c280d5c5e8c..a92e4b08820adc26402e6dcb77b6688baabc8a43 100644 (file)
@@ -6,6 +6,7 @@
 #ifndef _ASM_X86_CPUID_H
 #define _ASM_X86_CPUID_H
 
+#include <linux/build_bug.h>
 #include <linux/types.h>
 
 #include <asm/string.h>