]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:12 +0000 (18:19 -0400)
commit3a28164d9b0d4874afe8ceb679db61177a7ca7d0
treecb389bb035c6f78c60d283a2a940746915d75899
parent61698b987b6d649dfba2f27b1c5a78abbbb28977
parisc/ftrace: add missing CONFIG_DYNAMIC_FTRACE check

[ Upstream commit 250f5402e636a5cec9e0e95df252c3d54307210f ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/parisc/kernel/ftrace.c