lkml.org 
[lkml]   [2020]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] arm/ftrace: Remove duplicate function
On Fri, 20 Mar 2020 14:53:40 +0800
guoren@kernel.org wrote:

> From: Guo Ren <guoren@linux.alibaba.com>
>
> There is no arch implementation of ftrace_arch_code_modify_prepare in arm,
> so just use the __weak one in kernel/trace/ftrace.c.

Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>

-- Steve

>
> Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
> ---
> arch/arm/kernel/ftrace.c | 5 -----
> 1 file changed, 5 deletions(-)
>
> diff --git a/arch/arm/kernel/ftrace.c b/arch/arm/kernel/ftrace.c
> index 10499d44964a..f66ade28eb8a 100644
> --- a/arch/arm/kernel/ftrace.c
> +++ b/arch/arm/kernel/ftrace.c
> @@ -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. */

\
 
 \ /
  Last update: 2020-03-20 15:12    [W:0.831 / U:0.540 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site