powerpc/module_64: Consolidate ftrace code
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Tue, 21 Apr 2020 17:35:43 +0000 (23:05 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 2 Jun 2020 10:59:15 +0000 (20:59 +1000)
commit03b51416e876aea5e7638947e50831b6c988c246
treeba5f548f0758d26f4137b47bd636106f54ddd7ac
parent888468ce725a4cd56d72dc7e5096078f7a9251a0
powerpc/module_64: Consolidate ftrace code

module_trampoline_target() is only used by ftrace. Move the prototype
within the appropriate #ifdef in the header. Also, move the function
body to the end of module_64.c so as to consolidate all ftrace code in
one place.

No functional changes.

Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/2527351f65c53c5866068ae130dc34c5d4ee8ad9.1587488954.git.naveen.n.rao@linux.vnet.ibm.com
arch/powerpc/include/asm/module.h
arch/powerpc/kernel/module_64.c