[for-next][PATCH 31/34] ftrace: Remove unused pointer ftrace_swapper_pid

From: Steven Rostedt
Date: Sat Aug 11 2018 - 09:50:27 EST

From: Colin Ian King <colin.king@xxxxxxxxxxxxx>

Pointer ftrace_swapper_pid is defined but is never used hence it is
redundant and can be removed. The use of this variable was removed
in commit 345ddcc882d8 ("ftrace: Have set_ftrace_pid use the bitmap
like events do").

Cleans up clang warning:
warning: 'ftrace_swapper_pid' defined but not used [-Wunused-const-variable=]

Link: http://lkml.kernel.org/r/20180809125609.13142-1-colin.king@xxxxxxxxxxxxx

Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>
Signed-off-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx>
kernel/trace/ftrace.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index 2d795193024b..48b5b466ec7a 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -1020,8 +1020,6 @@ static __init void ftrace_profile_tracefs(struct dentry *d_tracer)

-static struct pid * const ftrace_swapper_pid = &init_struct_pid;
static int ftrace_graph_active;