Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8124173imu; Tue, 4 Dec 2018 03:25:14 -0800 (PST) X-Google-Smtp-Source: AFSGD/U9GPLFwrCH0L34UI6fU/+kR+ZmE/qtJ/SKMvrf04FK64We6/PWhLkHYGdfeVZ+rRvkoemy X-Received: by 2002:a63:2109:: with SMTP id h9mr15145915pgh.277.1543922714871; Tue, 04 Dec 2018 03:25:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543922714; cv=none; d=google.com; s=arc-20160816; b=LxGFQnWNk0Zo4VJ9KF5GoF5xo2plIDqgNcfJJLeLvmubIHi2ZxLKdA/OUiavKsJ/YN 8CfTTJJDNYp+vjdBvHz/vdCnj7rGrk4ZrJYeQLz6Hg7ui81ZAjxRQ+UwOvfZ9FmQ0sDd ZCRVLG2GUmbkwL/sj/DLzPgzamxu1isUV2aoU8+3HHZBi8lttLo3a8ewUKacY/J0Tc+h WReDCMhzig5SZJLvypir2Lz9qHQT4+BYxtFIFqeYkLBBv4PI8c72Kf3L8vPtLnw/pcI9 E8xwcDwqeQVFt64B47wKjY5NARVB03YXzvkxEIKHj7aeCFYrnYKDw9FXIUG7xR7DPko8 LpEQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=y/HuPOzQczF93qxkkhxDpROXWcXRcbmF4/af9Zmzs2c=; b=yjQtOmkqGlFSwvFFt8Q469TiZFP8U541+dv57jNyL4fmG0iW8gfQyegRqgP8oRF9FU jkfKFSlMbN+mEVzvQlXBad95+1AIAL1qxan9zB0hMxcOIulG+wBNcRaumgBh1tCf16d9 ST+Aq8Q5mbVUri75q+t7PH1OZ3bXpL8rTDEg0nww+/8GKQsiPc3x8Wg9iHmCssBl7CM/ LK6twwOaRjbJksnZk4xEgkBumL8HpMtBEL/O022brojkM/hGYRYduIp6tdF0Jvbbp8yn vBZixbPKeG0WCF1MV16XdoKt0V7OXnC5Ems6AmS1fO+hduAoWHOSq62dgeqTAxSepn+e vrBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gZWwq4b2; 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 c191si17572864pfg.72.2018.12.04.03.24.59; Tue, 04 Dec 2018 03:25:14 -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=gZWwq4b2; 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 S1727514AbeLDLYT (ORCPT + 99 others); Tue, 4 Dec 2018 06:24:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:46620 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727451AbeLDLBN (ORCPT ); Tue, 4 Dec 2018 06:01:13 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (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 420F32146D; Tue, 4 Dec 2018 11:01:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543921272; bh=Dy4N09hWZG7HzmvzGgZrNQWuErPrcVRJJxwHLyM5hk0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gZWwq4b23EXmRmfmMK/7229ZI1KGs7Yz0804M0OIFkm82KI0ceYBtNA3VteRpNg0Q //tataX4BEDK223gJqfY368tnkkg2j+hjn5hGazPfrd4Z43ILGeXyCVRLgqT/oFLz+ jW2ftpNAAwEKvXjZwRyWSDU4IbfpU58RRfiXrpBY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, stable@kernel.org, Masami Hiramatsu , "Steven Rostedt (VMware)" Subject: [PATCH 4.19 111/139] function_graph: Make ftrace_push_return_trace() static Date: Tue, 4 Dec 2018 11:49:52 +0100 Message-Id: <20181204103655.169239887@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181204103649.950154335@linuxfoundation.org> References: <20181204103649.950154335@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Steven Rostedt (VMware) commit d125f3f866df88da5a85df00291f88f0baa89f7c upstream. As all architectures now call function_graph_enter() to do the entry work, no architecture should ever call ftrace_push_return_trace(). Make it static. This is needed to prepare for a fix of a design bug on how the curr_ret_stack is used. Cc: stable@kernel.org Fixes: 03274a3ffb449 ("tracing/fgraph: Adjust fgraph depth before calling trace return callback") Reviewed-by: Masami Hiramatsu Signed-off-by: Steven Rostedt (VMware) Signed-off-by: Greg Kroah-Hartman --- include/linux/ftrace.h | 3 --- kernel/trace/trace_functions_graph.c | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h @@ -777,9 +777,6 @@ struct ftrace_ret_stack { extern void return_to_handler(void); extern int -ftrace_push_return_trace(unsigned long ret, unsigned long func, int *depth, - unsigned long frame_pointer, unsigned long *retp); -extern int function_graph_enter(unsigned long ret, unsigned long func, unsigned long frame_pointer, unsigned long *retp); --- a/kernel/trace/trace_functions_graph.c +++ b/kernel/trace/trace_functions_graph.c @@ -118,7 +118,7 @@ print_graph_duration(struct trace_array struct trace_seq *s, u32 flags); /* Add a function return address to the trace stack on thread info.*/ -int +static int ftrace_push_return_trace(unsigned long ret, unsigned long func, int *depth, unsigned long frame_pointer, unsigned long *retp) {