On Tue, 2016-26-07 at 03:38:37 UTC, Michael Ellerman 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 <s...@canb.auug.org.au>
> Signed-off-by: Michael Ellerman <m...@ellerman.id.au>
> Acked-by: Stephen Rothwell <s...@canb.auug.org.au>

Series applied to powerpc next.

https://git.kernel.org/powerpc/c/7353644fa9df875aee778a802e

cheers
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to