linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] ftrace: Make ftrace_profile_pages_init() static
@ 2020-07-13 14:24 Wei Yongjun
  0 siblings, 0 replies; only message in thread
From: Wei Yongjun @ 2020-07-13 14:24 UTC (permalink / raw)
  To: Hulk Robot, Steven Rostedt, Ingo Molnar; +Cc: Wei Yongjun, linux-kernel

The sparse tool complains as follows:

kernel/trace/ftrace.c:587:5: warning:
 symbol 'ftrace_profile_pages_init' was not declared. Should it be static?

ftrace_profile_pages_init() is not used out of ftrace.c, so
marks it static.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
 kernel/trace/ftrace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index a3093a84bae3..3e9369935cb3 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -584,7 +584,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;


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-13 14:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-13 14:24 [PATCH -next] ftrace: Make ftrace_profile_pages_init() static Wei Yongjun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).