Skip to contentSkip to conversation

arm/ftrace: Remove duplicate function

PATCH In review [email protected] 2 participants 2 messages Mar 20, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm/ftrace: Remove duplicate function

From: Guo Ren <[email protected]>

There is no arch implementation of ftrace_arch_code_modify_prepare in arm, so just use the __weak one in kernel/trace/ftrace.c.

---
 arch/arm/kernel/ftrace.c | 5 -----
 1 file changed, 5 deletions(-)
arch/arm/kernel/ftrace.c +0 -5
index 10499d44964a..f66ade28eb8a 100644
@@ -56,11 +56,6 @@ static unsigned long adjust_address(struct dyn_ftrace *rec, unsigned long addr)
 	return addr;
 }
 
-int ftrace_arch_code_modify_prepare(void)
-{
-	return 0;
-}
-
 int ftrace_arch_code_modify_post_process(void)
 {
 	/* Make sure any TLB misses during machine stop are cleared. */
Signature · 1 line
2.17.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · On Fri, 20 Mar 2020 14:53:40 +0800 [email protected] wrote:

From: Guo Ren <[email protected]>

There is no arch implementation of ftrace_arch_code_modify_prepare in arm, so just use the __weak one in kernel/trace/ftrace.c.

-- Steve

Quoted 22 lines
---
 arch/arm/kernel/ftrace.c | 5 -----
 1 file changed, 5 deletions(-)
arch/arm/kernel/ftrace.c +0 -5
index 10499d44964a..f66ade28eb8a 100644
@@ -56,11 +56,6 @@ static unsigned long adjust_address(struct dyn_ftrace *rec, unsigned long addr)
 	return addr;
 }
 
-int ftrace_arch_code_modify_prepare(void)
-{
-	return 0;
-}
-
 int ftrace_arch_code_modify_post_process(void)
 {
 	/* Make sure any TLB misses during machine stop are cleared. */