Thread (14 messages) flat view 14 messages, 4 authors, 2016-07-27

Re: [PATCH 1/3] powerpc/mm: Fix build break due when PPC_NATIVE=n

From: Stephen Rothwell <hidden>
Date: 2016-07-25 04:03:33

Hi Michael,

On Mon, 25 Jul 2016 12:57:49 +1000 Michael Ellerman [off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help