Re: [PATCH 1/2] MIPS: ftrace: Mark ftrace_get_parent_ra_addr as static

From: Maciej W. Rozycki
Date: Mon Sep 09 2024 - 17:59:22 EST


On Sun, 8 Sep 2024, Jiaxun Yang wrote:

> diff --git a/arch/mips/kernel/ftrace.c b/arch/mips/kernel/ftrace.c
> index 8c401e42301c..96016eb1c476 100644
> --- a/arch/mips/kernel/ftrace.c
> +++ b/arch/mips/kernel/ftrace.c
> @@ -248,8 +248,8 @@ int ftrace_disable_ftrace_graph_caller(void)
> #define S_R_SP (0xafb0 << 16) /* s{d,w} R, offset(sp) */
> #define OFFSET_MASK 0xffff /* stack offset range: 0 ~ PT_SIZE */
>
> -unsigned long ftrace_get_parent_ra_addr(unsigned long self_ra, unsigned long
> - old_parent_ra, unsigned long parent_ra_addr, unsigned long fp)
> +static unsigned long ftrace_get_parent_ra_addr(unsigned long self_ra, unsigned long old_parent_ra,
> + unsigned long parent_ra_addr, unsigned long fp)

Overlong lines.

Maciej