Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp775753imu; Thu, 22 Nov 2018 05:16:27 -0800 (PST) X-Google-Smtp-Source: AFSGD/V1yq5R4+uDzqQIpZLgJ2Kqn0Tqdz93Rk1RdxDZiBB6PrzCchZUhNDtYdR6+DVgZL+KvkmW X-Received: by 2002:a17:902:27e6:: with SMTP id i35mr7936330plg.222.1542892587526; Thu, 22 Nov 2018 05:16:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542892587; cv=none; d=google.com; s=arc-20160816; b=q58z7AzJZQp4jS0zGLyWsFKFZvJhAiSV30hFc8vmhUzl+9MSzzPalNRSJmJlPDkTDj leDyI9a17Zj43z/JgmH82x9j9wmizmGAW+5t3shA738i1AdY7LxUBbAvTK0M3uVdNitf 2M/iU0PcEdZUbmbLAT+Z77fsVJudriiLT5J5omL6EkPu1GSK8RnQYD42pd/nlOK40jFB 5Gr0NXk+on9tMlSPEIkdObilirgWOHciRxodCYN4r4dFAqobL6TiUa/yVMiBSeaWFfT+ OyRwiYD/jgKPs9oswH99n1wXTVK3m1hm8Ai3duQI+ntqeskSl+v4XKD+I8U/jEIk4wUL OoCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:subject:cc:to :from:date:user-agent:message-id; bh=OgltrGBMIg//Pom58Clx/Bc9XHRkImiUG87BNWfFNn4=; b=lenB1vvzBYr9pktf5Y8bNBUn54I5WTZgyCztwJhMe6LPLb4fWtoOCFEj7YUUUq5WD5 0CK+bZLRAKPR310USSjYebNIt0YoHVU+Qf/t/qFxVk7WJEvXeAUfXeIBc5P1Pyl2yYUY /z3Cpx6gjgcLAE65Do12KAPoC1TipSYlZjqSMcJWKKHt8kYY47LaA0GHlEyGwAVyWuo0 I7B0o9n68ByafKZT2mSnDuU1jQokVSD+gO5vJNZRJB6EVJPHM//zf3Fa9uVWbOsG/+mE VeP8flanpg0aBMrXxlm0F+0/x5dqSOto+sd940vBtpYf/poCUyj7LHKzbnzcCJA283D6 gx7A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k72si46633461pge.310.2018.11.22.05.16.09; Thu, 22 Nov 2018 05:16:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391411AbeKVMFE (ORCPT + 99 others); Thu, 22 Nov 2018 07:05:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:48044 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391360AbeKVMFC (ORCPT ); Thu, 22 Nov 2018 07:05:02 -0500 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BCA94223C7; Thu, 22 Nov 2018 01:28:04 +0000 (UTC) Received: from rostedt by gandalf.local.home with local (Exim 4.91) (envelope-from ) id 1gPdml-0005Lj-Q3; Wed, 21 Nov 2018 20:28:03 -0500 Message-Id: <20181122012803.706044851@goodmis.org> User-Agent: quilt/0.65 Date: Wed, 21 Nov 2018 20:27:16 -0500 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Ingo Molnar , Andrew Morton , Thomas Gleixner , Peter Zijlstra , Masami Hiramatsu , Josh Poimboeuf , Frederic Weisbecker , Joel Fernandes , Andy Lutomirski , Mark Rutland Subject: [RFC][PATCH 08/14] function_graph: Remove unused task_curr_ret_stack() References: <20181122012708.491151844@goodmis.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Steven Rostedt (VMware)" The static inline function task_curr_ret_stack() is unused, remove it. Signed-off-by: Steven Rostedt (VMware) --- include/linux/ftrace.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 477ff9412d26..5544df21a886 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h @@ -819,11 +819,6 @@ extern void ftrace_graph_init_task(struct task_struct *t); extern void ftrace_graph_exit_task(struct task_struct *t); extern void ftrace_graph_init_idle_task(struct task_struct *t, int cpu); -static inline int task_curr_ret_stack(struct task_struct *t) -{ - return t->curr_ret_stack; -} - static inline void pause_graph_tracing(void) { atomic_inc(¤t->tracing_graph_pause); @@ -847,11 +842,6 @@ static inline int register_ftrace_graph(struct fgraph_ops *ops); } static inline void unregister_ftrace_graph(struct fgraph_ops *ops) { } -static inline int task_curr_ret_stack(struct task_struct *tsk) -{ - return -1; -} - static inline unsigned long ftrace_graph_ret_addr(struct task_struct *task, int *idx, unsigned long ret, unsigned long *retp) -- 2.19.1