diff options
author | 2025-01-04 22:47:08 +0800 | |
---|---|---|
committer | 2025-01-11 12:37:05 +0100 | |
commit | ddd068d81445b17ac0bed084dfeb9e58b4df3ddd (patch) | |
tree | 86bf452eff9310947529068b1606c23a0ce00fe1 /scripts/lib/kdoc/kdoc_files.py | |
parent | Revert "MIPS: csrc-r4k: Select HAVE_UNSTABLE_SCHED_CLOCK if SMP && 64BIT" (diff) | |
download | linux-rng-ddd068d81445b17ac0bed084dfeb9e58b4df3ddd.tar.xz linux-rng-ddd068d81445b17ac0bed084dfeb9e58b4df3ddd.zip |
MIPS: ftrace: Declare ftrace_get_parent_ra_addr() as static
Declare ftrace_get_parent_ra_addr() as static to suppress clang
compiler warning that 'no previous prototype'. This function is
not intended to be called from other parts.
Fix follow error with clang-19:
arch/mips/kernel/ftrace.c:251:15: error: no previous prototype for function 'ftrace_get_parent_ra_addr' [-Werror,-Wmissing-prototypes]
251 | unsigned long ftrace_get_parent_ra_addr(unsigned long self_ra, unsigned long
| ^
arch/mips/kernel/ftrace.c:251:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
251 | unsigned long ftrace_get_parent_ra_addr(unsigned long self_ra, unsigned long
| ^
| static
1 error generated.
Signed-off-by: WangYuli <wangyuli@uniontech.com>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions