]> 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)
commit2f184847e67d1d6d594f3348149674c3036ff2c9
treea8561777674a02b5b6aa1d4a29b30ee55ffcef49
parent2279b6fa4d8d36f09d013bf4e9d1112c3bf3c21f
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