From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760628AbbJ3TGI (ORCPT ); Fri, 30 Oct 2015 15:06:08 -0400 Received: from mail-wm0-f49.google.com ([74.125.82.49]:37854 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758758AbbJ3TGF (ORCPT ); Fri, 30 Oct 2015 15:06:05 -0400 From: Dmitry Safonov <0x7f454c46@gmail.com> To: rostedt@goodmis.org, mingo@redhat.com Cc: linux-kernel@vger.kernel.org, Dmitry Safonov <0x7f454c46@gmail.com> Subject: [PATCH] trace_functions_graph: Remove __trace_graph_function Date: Fri, 30 Oct 2015 22:07:18 +0300 Message-Id: <1446232038-27113-1-git-send-email-0x7f454c46@gmail.com> X-Mailer: git-send-email 2.6.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org __trace_graph_funciton is used in only one location, and is static. As it's small function there is no need to keep it separated out. Signed-off-by: Dmitry Safonov <0x7f454c46@gmail.com> --- kernel/trace/trace_functions_graph.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/kernel/trace/trace_functions_graph.c b/kernel/trace/trace_functions_graph.c index ca98445782acaa..db434d2a9d6243 100644 --- a/kernel/trace/trace_functions_graph.c +++ b/kernel/trace/trace_functions_graph.c @@ -360,8 +360,7 @@ static int trace_graph_thresh_entry(struct ftrace_graph_ent *trace) return trace_graph_entry(trace); } -static void -__trace_graph_function(struct trace_array *tr, +void trace_graph_function(struct trace_array *tr, unsigned long ip, unsigned long flags, int pc) { u64 time = trace_clock_local(); @@ -380,14 +379,6 @@ __trace_graph_function(struct trace_array *tr, __trace_graph_return(tr, &ret, flags, pc); } -void -trace_graph_function(struct trace_array *tr, - unsigned long ip, unsigned long parent_ip, - unsigned long flags, int pc) -{ - __trace_graph_function(tr, ip, flags, pc); -} - void __trace_graph_return(struct trace_array *tr, struct ftrace_graph_ret *trace, unsigned long flags, -- 2.6.1