parisc/ftrace: add missing CONFIG_DYNAMIC_FTRACE check
authorMax Kellermann <max.kellermann@ionos.com>
Sun, 11 Feb 2024 22:43:14 +0000 (23:43 +0100)
committerHelge Deller <deller@gmx.de>
Fri, 16 Feb 2024 19:18:03 +0000 (20:18 +0100)
commit250f5402e636a5cec9e0e95df252c3d54307210f
treef6e7bc6595df920e3f7189f3a94a7f41f50a8dad
parent82b143aeb169b8b55798d7d2063032e1a6ceeeb0
parisc/ftrace: add missing CONFIG_DYNAMIC_FTRACE check

Fixes a bug revealed by -Wmissing-prototypes when
CONFIG_FUNCTION_GRAPH_TRACER is enabled but not CONFIG_DYNAMIC_FTRACE:

 arch/parisc/kernel/ftrace.c:82:5: error: no previous prototype for 'ftrace_enable_ftrace_graph_caller' [-Werror=missing-prototypes]
    82 | int ftrace_enable_ftrace_graph_caller(void)
       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 arch/parisc/kernel/ftrace.c:88:5: error: no previous prototype for 'ftrace_disable_ftrace_graph_caller' [-Werror=missing-prototypes]
    88 | int ftrace_disable_ftrace_graph_caller(void)
       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/ftrace.c