[PATCH v2 1/2] powerpc/mm: Fix build break when PPC_NATIVE=n

Stephen Rothwell sfr at canb.auug.org.au
Tue Jul 26 13:47:54 AEST 2016

Hi Michael,

On Tue, 26 Jul 2016 13:38:37 +1000 Michael Ellerman <mpe at ellerman.id.au> wrote:
> The recent commit to rework the hash MMU setup broke the build when
> CONFIG_PPC_NATIVE=n. Fix it by adding an IS_ENABLED() check before
> calling hpte_init_native().
> Removing the else clause opens the possibility that we don't set any
> ops, which would probably lead to a strange crash later. So add a check
> that we correctly initialised at least one member of the struct.
> Fixes: 166dd7d3fbf2 ("powerpc/64: Move MMU backend selection out of platform code")
> Reported-by: Stephen Rothwell <sfr at canb.auug.org.au>
> Signed-off-by: Michael Ellerman <mpe at ellerman.id.au>

Acked-by: Stephen Rothwell <sfr at canb.auug.org.au>
Stephen Rothwell

More information about the Linuxppc-dev mailing list