powerpc/mm: move slice_mask_for_size() into mmu.h
authorChristophe Leroy <christophe.leroy@c-s.fr>
Thu, 25 Apr 2019 14:29:30 +0000 (14:29 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 2 May 2019 15:20:22 +0000 (01:20 +1000)
commitfca5c1e9eb5e263c1b4def0b5ae4ce5b2e1a9877
treeb95a479cb21a65bfa62bbcafebf47fbd349b9b74
parent6f60cc98df2be7f082bd786aa824ceabd24d24cb
powerpc/mm: move slice_mask_for_size() into mmu.h

Move slice_mask_for_size() into subarch mmu.h

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
[mpe: Retain the BUG_ON()s, rather than converting to VM_BUG_ON()]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/mmu.h
arch/powerpc/include/asm/nohash/32/mmu-8xx.h
arch/powerpc/mm/slice.c