]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64e: Rewrite p4d_populate() as a static inline function
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 23 Jun 2022 08:56:57 +0000 (10:56 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 29 Jun 2022 07:03:11 +0000 (17:03 +1000)
commit96bb43d3c142b4df2f0520c8487241b4a5a2bb26
tree66dac9b430e8aa8a1b440c66b244b84f1fc950d6
parent7383758fc94d8a26c8d4339dff9b534a7ab5ff3a
powerpc/64e: Rewrite p4d_populate() as a static inline function

Rewrite p4d_populate() as a static inline function instead of
a macro.

This change allows typechecking and would have helped detecting
a recently found bug in map_kernel_page().

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1b416f8a8fe1bc3f4e01175680ce310b7eb3a1e4.1655974565.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/nohash/64/pgalloc.h