diff options
| author | WangYuli <wangyuli@uniontech.com> | 2025-01-04 22:47:08 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-17 10:05:44 +0100 |
| commit | 9be0b25adeb2e2383351fdd9f8c9ec75dddcc4e0 (patch) | |
| tree | 14a864533ae5c1dc63d768176e74e89aca01f278 /scripts/stackusage | |
| parent | 4801e961be614a3c49afdf604e0ee76b51a93842 (diff) | |
| download | linux-9be0b25adeb2e2383351fdd9f8c9ec75dddcc4e0.tar.gz linux-9be0b25adeb2e2383351fdd9f8c9ec75dddcc4e0.tar.bz2 linux-9be0b25adeb2e2383351fdd9f8c9ec75dddcc4e0.zip | |
MIPS: ftrace: Declare ftrace_get_parent_ra_addr() as static
commit ddd068d81445b17ac0bed084dfeb9e58b4df3ddd upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
