Skip to contentSkip to conversation

x86/its: fix an ifdef typo in its_alloc()

PATCH New Lukas Bulwahn 1 participant 1 message Jun 16, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/its: fix an ifdef typo in its_alloc()

From: Lukas Bulwahn <[email protected]>

Commit a82b26451de1 ("x86/its: explicitly manage permissions for ITS pages") reworks its_alloc() and introduces a typo in an ifdef conditional, referring to CONFIG_MODULE instead of CONFIG_MODULES.

Fix this typo in its_alloc().

Fixes a82b26451de1 ("x86/its: explicitly manage permissions for ITS pages")
---
 arch/x86/kernel/alternative.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/alternative.c +1 -1
index 6455f7f751b3..9ae80fa904a2 100644
@@ -228,7 +228,7 @@ static void *its_alloc(void)
 	struct its_array *pages = &its_pages;
 	void *page;
 
-#ifdef CONFIG_MODULE
+#ifdef CONFIG_MODULES
 	if (its_mod)
 		pages = &its_mod->arch.its_pages;
 #endif
Signature · 1 line
2.49.0