[PATCH 1/3] powerpc/mm: Fix build break due when PPC_NATIVE=n
Stephen Rothwell
sfr at canb.auug.org.au
Mon Jul 25 14:03:32 AEST 2016
Hi Michael,
On Mon, 25 Jul 2016 12:57:49 +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 providing a fallback implementation of
> hpte_init_native().
Alternatively, you could make the call site dependent on
IS_ENABLED(CONFIG_PPC_NATIVE) and not need the fallback.
so:
else if (IS_ENABLED(CONFIG_PPC_NATIVE))
hpte_init_native();
in arch/powerpc/mm/hash_utils_64.c and let the compiler elide the call.
--
Cheers,
Stephen Rothwell
More information about the Linuxppc-dev
mailing list