]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Move get_unmapped_area functions to slice.c
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Sat, 9 Apr 2022 17:17:34 +0000 (19:17 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 5 May 2022 12:11:58 +0000 (22:11 +1000)
commitf9ebeae1f42cd6dc33cee2f579f06281073b9220
treea8561777674a02b5b6aa1d4a29b30ee55ffcef49
parentc639d5c2c355fd1e8ce21da9da4341ad35a09b1a
powerpc/mm: Move get_unmapped_area functions to slice.c

hugetlb_get_unmapped_area() is now identical to the
generic version if only RADIX is enabled, so move it
to slice.c and let it fallback on the generic one
when HASH MMU is not compiled in.

Do the same with arch_get_unmapped_area() and
arch_get_unmapped_area_topdown().

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/b5d9c124e82889e0cb115c150915a0c0d84eb960.1649523076.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/book3s/64/mmu.h
arch/powerpc/include/asm/book3s/64/slice.h
arch/powerpc/mm/book3s64/slice.c
arch/powerpc/mm/hugetlbpage.c
arch/powerpc/mm/mmap.c