aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorGravatar Naveen N Rao <naveen@kernel.org> 2023-06-19 15:17:20 +0530
committerGravatar Michael Ellerman <mpe@ellerman.id.au> 2023-08-22 00:09:05 +1000
commit0240605931ec300ddb698020edff05a4c93edbb2 (patch)
tree634fc655dd911c170628c70ecfd03f2b5a2a0ad6 /arch/powerpc/include
parentpowerpc/ftrace: Fix dropping weak symbols with older toolchains (diff)
downloadlinux-0240605931ec300ddb698020edff05a4c93edbb2.tar.gz
linux-0240605931ec300ddb698020edff05a4c93edbb2.tar.bz2
linux-0240605931ec300ddb698020edff05a4c93edbb2.zip
powerpc/module: Remove unused .ftrace.tramp section
.ftrace.tramp section is not used for any purpose. This code was added all the way back in the original commit introducing support for dynamic ftrace on ppc64 modules. Remove it. Signed-off-by: Naveen N Rao <naveen@kernel.org> Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/9cf6d7f37ba82f7cb6dafecf660f44925c526d8d.1687166935.git.naveen@kernel.org
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/module.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/powerpc/include/asm/module.h b/arch/powerpc/include/asm/module.h
index ac53606c2594..a8e2e8339fb7 100644
--- a/arch/powerpc/include/asm/module.h
+++ b/arch/powerpc/include/asm/module.h
@@ -75,10 +75,6 @@ struct mod_arch_specific {
#endif
#ifdef CONFIG_DYNAMIC_FTRACE
-# ifdef MODULE
- asm(".section .ftrace.tramp,\"ax\",@nobits; .align 3; .previous");
-# endif /* MODULE */
-
int module_trampoline_target(struct module *mod, unsigned long trampoline,
unsigned long *target);
int module_finalize_ftrace(struct module *mod, const Elf_Shdr *sechdrs);