Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5424803imu; Sun, 25 Nov 2018 23:41:02 -0800 (PST) X-Google-Smtp-Source: AFSGD/XrJJj+l8BPASkMp3/0/7VDeevo3i+Q/+UnT5G5B/Oc0RB8NJCVmOJ+dI4Y1+979nmHzE2d X-Received: by 2002:a17:902:622:: with SMTP id 31mr17425515plg.171.1543218062753; Sun, 25 Nov 2018 23:41:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543218062; cv=none; d=google.com; s=arc-20160816; b=M1rHiG3AaQfhuINnnWHDx8oYsauHMaowMg9oELiaI1nhInZ0cfOgYnMpx0zv6lGYZT 9eFyqZ6FpNMUKtYk0+pxPmK/r1V6QLL5/pHryeTZWuKsZ1WlhSfLxuAWbKcjg5TQ5r8Z b1qXtVIOyhWpGatpaoGtgKPXWD+8RTzE3D/4UjnshupX1vOyVGnTy/j0AypyTf65WDIf EUQ8BsMlyEo9tJQxe6qkyh/AYE/vwEDOotb6kO7NZvtqk0t+b9Nw2LpUCjy5qXBlJNss nWja5xrZC+DeDCL6Lr5nWOJJm3Tm1UXznfBx1teZUIBBtSnuCBkC1AKgGC93Am92N8Ae HuaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=6rI5z+AhCPAH9flRJXuEN86Q33waImZk0PQG39R6SIk=; b=eBhIOyLwiiFfS8vNCNLdcdXOuERNvCkAUZ/yZ7YNo5qgoOrjChGSairFnqdndkzu9U QgHV65wic8YdDAA0TBOF3szISM+tx88dQB/Fabl1OiUa42l4jAjyusN+fZR6Gda2CV3N LFhRJJXPBjEPvuG0DekL25iOpoN+o3WB0THUAmfGG3lKokf8DCr4dPpkeEqIUwYS6Z7p igVQc2j3UqiaEdnwwNRnrcA2oWvKekFDV9R/BurSv5MDgvXCc4phgSTe2sa++j1i9X8G DzG0yVe7Cw+pNFU7rp3XmJ/qNBIIVu9LHomX45XxLDZyp3K7N8xJd+lY2vDyQW4I5ns8 0vog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UuSG9zlX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x10si60001579pgl.209.2018.11.25.23.40.47; Sun, 25 Nov 2018 23:41:02 -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; dkim=pass header.i=@kernel.org header.s=default header.b=UuSG9zlX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726345AbeKZSdU (ORCPT + 99 others); Mon, 26 Nov 2018 13:33:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:39456 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726162AbeKZSdT (ORCPT ); Mon, 26 Nov 2018 13:33:19 -0500 Received: from devnote (NE2965lan1.rev.em-net.ne.jp [210.141.244.193]) (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 EA97D20663; Mon, 26 Nov 2018 07:40:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543218005; bh=9FJhciFxOlUWmW4YqgEibELgV10hqWDKRTnhqdIRGtY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=UuSG9zlXcHibDeG2KdnvUmJiDH+xLg4k6uPeMJWRWIXKMGE/1+pPGxCnsTqcBhnEd 0wT7F3ArHKYDKRldzMhYIM0pdwa7GysAt4d1UMJ38JFsLU7J83KA5m8rOYIALjSRfg DmVurD1FtX+i+Tazm8rhpvDW5DNU7lzNVEzXBwFg= Date: Mon, 26 Nov 2018 16:40:02 +0900 From: Masami Hiramatsu To: Steven Rostedt Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Andrew Morton , Thomas Gleixner , Peter Zijlstra , Masami Hiramatsu , Josh Poimboeuf , Frederic Weisbecker , Joel Fernandes , Andy Lutomirski , Mark Rutland Subject: Re: [RFC][PATCH 08/14] function_graph: Remove unused task_curr_ret_stack() Message-Id: <20181126164002.16e2e924529f52fb4d46d2f4@kernel.org> In-Reply-To: <20181122012803.706044851@goodmis.org> References: <20181122012708.491151844@goodmis.org> <20181122012803.706044851@goodmis.org> X-Mailer: Sylpheed 3.5.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 21 Nov 2018 20:27:16 -0500 Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > The static inline function task_curr_ret_stack() is unused, remove it. This looks able to be applied without this series. I think we should apply this to for-next branch? Reviewed-by: Masami Hiramatsu Thanks, > > 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 > > -- Masami Hiramatsu