Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

powerpc/mm: Fix typo in IS_ENABLED()

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().

Fixes: 970d54f99cea ("powerpc/book3s64/hash: Disable 16M linear mapping size if not aligned")
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/202006050717.A2F9809E@keescook

authored by

Joe Perches and committed by
Michael Ellerman
55bd9ac4 f0993c83

+2 -3
+2 -3
arch/powerpc/mm/book3s64/hash_utils.c
··· 663 663 * Pick a size for the linear mapping. Currently, we only 664 664 * support 16M, 1M and 4K which is the default 665 665 */ 666 - if (IS_ENABLED(STRICT_KERNEL_RWX) && 666 + if (IS_ENABLED(CONFIG_STRICT_KERNEL_RWX) && 667 667 (unsigned long)_stext % 0x1000000) { 668 668 if (mmu_psize_defs[MMU_PAGE_16M].shift) 669 - pr_warn("Kernel not 16M aligned, " 670 - "disabling 16M linear map alignment"); 669 + pr_warn("Kernel not 16M aligned, disabling 16M linear map alignment\n"); 671 670 aligned = false; 672 671 } 673 672