summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/pseries/lpar.c
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2016-07-25 11:54:41 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2016-07-26 14:16:08 +1000
commit7353644fa9df875aee778a802e3d28f1e3578512 (patch)
tree68a1e96d5d7372dd843f47fa52a8fdf9aaa4fccb /arch/powerpc/platforms/pseries/lpar.c
parentccf5c442a1b82bf74105d72416e069607353cb82 (diff)
downloadtalos-obmc-linux-7353644fa9df875aee778a802e3d28f1e3578512.tar.gz
talos-obmc-linux-7353644fa9df875aee778a802e3d28f1e3578512.zip
powerpc/mm: Fix build break when PPC_NATIVE=n
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@canb.auug.org.au> Acked-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/platforms/pseries/lpar.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud