Skip to content

Commit fbef66f

Browse files
sfrothwellmpe
authored andcommitted
powerpc/mm: Parenthesise IS_ENABLED() in if condition
Currently IS_ENABLED() produces an expression surrounded by parentheses, which allows this code to compile, generating eg: else if (1 || 0) hpte_init_native(); However a change to the macro in the kbuild tree will break this in future by removing the parentheses. Fixes: 7353644 ("powerpc/mm: Fix build break when PPC_NATIVE=n") Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent 00dab81 commit fbef66f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/powerpc/mm/hash_utils_64.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ void __init hash__early_init_mmu(void)
926926
ps3_early_mm_init();
927927
else if (firmware_has_feature(FW_FEATURE_LPAR))
928928
hpte_init_pseries();
929-
else if IS_ENABLED(CONFIG_PPC_NATIVE)
929+
else if (IS_ENABLED(CONFIG_PPC_NATIVE))
930930
hpte_init_native();
931931

932932
if (!mmu_hash_ops.hpte_insert)

0 commit comments

Comments
 (0)