Re: powerpc/mm: Eliminate not possible mmu features at compile time

2018-12-22 Thread Michael Ellerman
On Fri, 2018-11-16 at 17:08:03 UTC, Christophe Leroy wrote: > Depending on the CONFIG selected, many of the MMU features are > not possible. Lets only get the possible ones in MMU_FTRS_POSSIBLE. > > This allows gcc to get rid at compile time of code related to > not possible features. > > Signed-

[PATCH] powerpc/mm: Eliminate not possible mmu features at compile time

2018-11-16 Thread Christophe Leroy
Depending on the CONFIG selected, many of the MMU features are not possible. Lets only get the possible ones in MMU_FTRS_POSSIBLE. This allows gcc to get rid at compile time of code related to not possible features. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/mmu.h | 31 +++