diff mbox series

[02/17] powerpc/module: Remove unused .ftrace.tramp section

Message ID 9cf6d7f37ba82f7cb6dafecf660f44925c526d8d.1687166935.git.naveen@kernel.org (mailing list archive)
State Accepted
Commit 0240605931ec300ddb698020edff05a4c93edbb2
Headers show
Series powerpc/ftrace: refactor and add support for -fpatchable-function-entry | expand

Commit Message

Naveen N Rao June 19, 2023, 9:47 a.m. UTC
.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>
---
 arch/powerpc/include/asm/module.h | 4 ----
 1 file changed, 4 deletions(-)

Comments

Christophe Leroy June 23, 2023, 5:12 a.m. UTC | #1
Le 19/06/2023 à 11:47, Naveen N Rao a écrit :
> .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>

> ---
>   arch/powerpc/include/asm/module.h | 4 ----
>   1 file changed, 4 deletions(-)
> 
> diff --git a/arch/powerpc/include/asm/module.h b/arch/powerpc/include/asm/module.h
> index ac53606c259430..a8e2e8339fb7f4 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);
diff mbox series

Patch

diff --git a/arch/powerpc/include/asm/module.h b/arch/powerpc/include/asm/module.h
index ac53606c259430..a8e2e8339fb7f4 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);