[PATCH] x86/extable: include asm/processor.h for cpu_relax()

From: Dmytro Maluka
Date: Fri Apr 18 2025 - 07:57:45 EST


Include asm/processor.h to prevents compilation failures due to implicit
declaration of cpu_relax() in ex_handler_msr_mce() when compiling with
CONFIG_X86_MCE disabled.

Signed-off-by: Dmytro Maluka <dmaluka@xxxxxxxxxxxx>
---
arch/x86/include/asm/extable.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/x86/include/asm/extable.h b/arch/x86/include/asm/extable.h
index a0e0c6b50155..c22e524276a5 100644
--- a/arch/x86/include/asm/extable.h
+++ b/arch/x86/include/asm/extable.h
@@ -3,6 +3,7 @@
#define _ASM_X86_EXTABLE_H

#include <asm/extable_fixup_types.h>
+#include <asm/processor.h> /* for cpu_relax() */

/*
* The exception table consists of two addresses relative to the
--
2.49.0.805.g082f7c87e0-goog