mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86/irqflags: Fix build failure
@ 2026-01-15 16:10 Juergen Gross
  2026-01-15 17:45 ` Borislav Petkov
  0 siblings, 1 reply; 13+ messages in thread
From: Juergen Gross @ 2026-01-15 16:10 UTC (permalink / raw)
  To: linux-kernel, x86
  Cc: Juergen Gross, Thomas Gleixner, Ingo Molnar, Borislav Petkov,
	Dave Hansen, H. Peter Anvin, kernel test robot

When building with CONFIG_PARAVIRT, but without CONFIG_PARAVIRT_XXL,
a build failure might happen due to arch/x86/include/asm/irqflags.h
only including asm/paravirt.h when CONFIG_PARAVIRT_XXL is set.

This was spotted when testing a patch removing the
"#include <asm/paravirt.h>" from another header.

Fixes: 22cc5ca5de52 ("x86/paravirt: Move halt paravirt calls under CONFIG_PARAVIRT")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202601152203.plJOoOEF-lkp@intel.com/
Signed-off-by: Juergen Gross <jgross@suse.com>
---
 arch/x86/include/asm/irqflags.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/x86/include/asm/irqflags.h b/arch/x86/include/asm/irqflags.h
index a1193e9d65f2..4d4d02e31287 100644
--- a/arch/x86/include/asm/irqflags.h
+++ b/arch/x86/include/asm/irqflags.h
@@ -96,11 +96,11 @@ static __always_inline void halt(void)
 	native_halt();
 }
 #endif /* __ASSEMBLY__ */
+#else
+#include <asm/paravirt.h>
 #endif /* CONFIG_PARAVIRT */
 
-#ifdef CONFIG_PARAVIRT_XXL
-#include <asm/paravirt.h>
-#else
+#ifndef CONFIG_PARAVIRT_XXL
 #ifndef __ASSEMBLER__
 #include <linux/types.h>
 
-- 
2.51.0


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2026-01-19 16:24 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-15 16:10 [PATCH] x86/irqflags: Fix build failure Juergen Gross
2026-01-15 17:45 ` Borislav Petkov
2026-01-15 18:29   ` Jürgen Groß
2026-01-19 11:36     ` Borislav Petkov
2026-01-19 11:52       ` Jürgen Groß
2026-01-19 13:28         ` Borislav Petkov
2026-01-19 13:52           ` Jürgen Groß
2026-01-19 13:58           ` Jürgen Groß
2026-01-19 14:10             ` Borislav Petkov
2026-01-19 14:22               ` Jürgen Groß
2026-01-19 15:46                 ` Borislav Petkov
2026-01-19 16:02                   ` Jürgen Groß
2026-01-19 16:24                     ` Borislav Petkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®