summaryrefslogtreecommitdiffstats
path: root/kernel/trace/ftrace.c
diff options
context:
space:
mode:
authorchongjiapeng <jiapeng.chong@linux.alibaba.com>2021-10-19 12:48:54 +0200
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2021-10-26 04:27:07 +0200
commit172f7ba9772cae12f099fc563352e905dc9a1921 (patch)
tree26b3587322979862ecfa0e5f2905ea2f78869c7a /kernel/trace/ftrace.c
parentARM: Recover kretprobe modified return address in stacktrace (diff)
downloadlinux-172f7ba9772cae12f099fc563352e905dc9a1921.tar.xz
linux-172f7ba9772cae12f099fc563352e905dc9a1921.zip
ftrace: Make ftrace_profile_pages_init static
This symbol is not used outside of ftrace.c, so marks it static. Fixes the following sparse warning: kernel/trace/ftrace.c:579:5: warning: symbol 'ftrace_profile_pages_init' was not declared. Should it be static? Link: https://lkml.kernel.org/r/1634640534-18280-1-git-send-email-jiapeng.chong@linux.alibaba.com Reported-by: Abaci Robot <abaci@linux.alibaba.com> Fixes: cafb168a1c92 ("tracing: make the function profiler per cpu") Signed-off-by: chongjiapeng <jiapeng.chong@linux.alibaba.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/ftrace.c')
-rw-r--r--kernel/trace/ftrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index f90ed00a6d5b..2057ad363772 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -576,7 +576,7 @@ static void ftrace_profile_reset(struct ftrace_profile_stat *stat)
FTRACE_PROFILE_HASH_SIZE * sizeof(struct hlist_head));
}
-int ftrace_profile_pages_init(struct ftrace_profile_stat *stat)
+static int ftrace_profile_pages_init(struct ftrace_profile_stat *stat)
{
struct ftrace_profile_page *pg;
int functions;