]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace: Make ftrace_profile_pages_init static
authorchongjiapeng <jiapeng.chong@linux.alibaba.com>
Tue, 19 Oct 2021 10:48:54 +0000 (18:48 +0800)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 26 Oct 2021 02:27:07 +0000 (22:27 -0400)
commitb1a8f2389074fcdd17e18edac672126d2442118b
tree26b3587322979862ecfa0e5f2905ea2f78869c7a
parentdd932837a9458a126fe4e6b7b83d4a55d316412c
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: a16306f17b26 ("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>
kernel/trace/ftrace.c