Skip to contentSkip to conversation

powerpc/mm: Fix typo in IS_ENABLED()

PATCH Applied Kees Cook 2 participants 2 messages Jun 5, 2020 – Jun 26, 2020 PowerPC

lore
Share & tools
lore

Kees Cook

author
#0 lore raw

PATCH 1/1 powerpc/mm: Fix typo in IS_ENABLED()

From: Joe Perches <[email protected]>

IS_ENABLED() matches names exactly, so the missing "CONFIG_" prefix means this code would never be built.

Also fixes a missing newline in pr_warn().

---
 arch/powerpc/mm/book3s64/hash_utils.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
arch/powerpc/mm/book3s64/hash_utils.c +2 -3
index 8ed2411c3f39..cf2e1b06e5d4 100644
@@ -660,11 +660,10 @@ static void __init htab_init_page_sizes(void)
 		 * Pick a size for the linear mapping. Currently, we only
 		 * support 16M, 1M and 4K which is the default
 		 */
-		if (IS_ENABLED(STRICT_KERNEL_RWX) &&
+		if (IS_ENABLED(CONFIG_STRICT_KERNEL_RWX) &&
 		    (unsigned long)_stext % 0x1000000) {
 			if (mmu_psize_defs[MMU_PAGE_16M].shift)
-				pr_warn("Kernel not 16M aligned, "
-					"disabling 16M linear map alignment");
+				pr_warn("Kernel not 16M aligned, disabling 16M linear map alignment\n");
 			aligned = false;
 		}
 
Signature · 5 lines
2.25.1


-- 
Kees Cook