From patchwork Thu Apr 25 09:45:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Gleixner X-Patchwork-Id: 10916661 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EFA931805 for ; Thu, 25 Apr 2019 10:00:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E0A0A28A08 for ; Thu, 25 Apr 2019 10:00:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D478D28BAD; Thu, 25 Apr 2019 10:00:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 44D6028C50 for ; Thu, 25 Apr 2019 10:00:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 064D26B0279; Thu, 25 Apr 2019 05:59:48 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id F29B86B027A; Thu, 25 Apr 2019 05:59:47 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E40CF6B027B; Thu, 25 Apr 2019 05:59:47 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by kanga.kvack.org (Postfix) with ESMTP id 96F816B0279 for ; Thu, 25 Apr 2019 05:59:47 -0400 (EDT) Received: by mail-wm1-f70.google.com with SMTP id l1so1708509wme.1 for ; Thu, 25 Apr 2019 02:59:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:message-id :user-agent:date:from:to:cc:subject:references:mime-version; bh=AbGWBfsmiBtGe5Q12XU2KARDGzfPBnL23OmriG/Tdzg=; b=tm30XNqn3ovaEmLo0MZkjsLVMYMNtmh3BvLFUAFHFZccyuCADT9Q9FB/CHuCM5aJKO Yg0NewQU4hptMTLiTShhaI7n0gfRDxfhY0/eLN7XunH76unXmBdu6pO8LPZnYuwXjWT3 8MuIhr90ADlILiAYV0Ascz6CB9DaLQCEOBAr0DcmgiYYlPoKqPtF/5kTPRJvKfq7T4KY 1p0cX7L2dXCYvNjJ0ZiZ/WXEL3mCX6lqwA/1gkxzx5UyZBJlPnBsPcKB8/oAJYWdY0Gx 7RG4+KA6J9miccrpClz9mEsl1NzSJLJ1b+gCFj3lkGUJ4QGAOEKs0qk1JR2ZPS48NdKo esUg== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of tglx@linutronix.de designates 2a01:7a0:2:106d:700::1 as permitted sender) smtp.mailfrom=tglx@linutronix.de X-Gm-Message-State: APjAAAVq6GYuL4nLkbxXfaQTFeLwDtcyTG6hFCogEaDrBoeYe4UZjO5Y k/IUDtNAUyIv1z2q6RSOlnn97nYMjsPQQIfw94UlZ3AQuEBqoUnNGSKkfiNGmDUzffKdOa6+IMs m92OnhcGQSmZ9WRAaCh/wTBh9RQz0AULhQZNtWE7UqVzdTguro/YCTKPt2o4Ahu0Jmw== X-Received: by 2002:a1c:f70c:: with SMTP id v12mr2747557wmh.86.1556186387132; Thu, 25 Apr 2019 02:59:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqwiuxI86MtxfLO6beW0Som5MhFbckgVBTop9Llx5NI02tzpsz7mgHy07ckk1O96us4U4/UY X-Received: by 2002:a1c:f70c:: with SMTP id v12mr2747504wmh.86.1556186386299; Thu, 25 Apr 2019 02:59:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556186386; cv=none; d=google.com; s=arc-20160816; b=ATBaH4SIcIVJ12wbLpma+0iTw8Qi2tkYMw7qohtR72V3PZFbC7AciGbR/RhZVeiYlk sDCcXl5Un98FGPXL2RPOATzp8c/56sIPf9ZmjUjtQGiTWFC7DY9FIgDeOGIRZ8KTWjND zWR7FdIFRVV+il+P5CXzumQ7ZKOaHg59NLRRj0NV5PuV7DWmQmQnjMYbk9XGurXnCWti LAVSOqNJGBWQa4wvgG8lAxBLsYukJJwziSril8R0C8lHpmNCHOaDx4yChOEx+gti27Oj mRAbJPyTwNKbHFOnzx3e9jkeVtJp0Ys8nyZjxhYAHMZ5fdYh55VUVCz2/fSWrNS7fWQh mrhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:subject:cc:to:from:date:user-agent :message-id; bh=AbGWBfsmiBtGe5Q12XU2KARDGzfPBnL23OmriG/Tdzg=; b=xu27a479TVqDmg8ZtKo6EESUt1GpPJmBcpZa8mSZiImDPUwxvDgsqZNLgERkEYL9UU tC2TgI3Vgf2D9R+DcE18zXU8LvoVK3s/9wv/kVSXlaT63tNiiF4VJnezW7Jo68JEIB5P WavNI6iSBd+2WuzZdtI+8J9yRBQhVM7yrQ25MlCz+y2r7qqWNx8m4xBO06th8HhfHogx KRG6PgVxH5HR0U75wB4JVscoD0bpoq2QdnHv7R9wjF4gJdm4279FVsRwqhqR4LOyDkfx 4M45GBSDQHH+94gC2VLAZTaYTu4PijC1CMw/XyEwH2dZl9h4tyi4XOzppzecLy7uPKRF L+2w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of tglx@linutronix.de designates 2a01:7a0:2:106d:700::1 as permitted sender) smtp.mailfrom=tglx@linutronix.de Received: from Galois.linutronix.de (Galois.linutronix.de. [2a01:7a0:2:106d:700::1]) by mx.google.com with ESMTPS id z23si2940255wml.135.2019.04.25.02.59.46 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 25 Apr 2019 02:59:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of tglx@linutronix.de designates 2a01:7a0:2:106d:700::1 as permitted sender) client-ip=2a01:7a0:2:106d:700::1; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of tglx@linutronix.de designates 2a01:7a0:2:106d:700::1 as permitted sender) smtp.mailfrom=tglx@linutronix.de Received: from localhost ([127.0.0.1] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtp (Exim 4.80) (envelope-from ) id 1hJbAM-0001zT-1S; Thu, 25 Apr 2019 11:59:42 +0200 Message-Id: <20190425094803.524796783@linutronix.de> User-Agent: quilt/0.65 Date: Thu, 25 Apr 2019 11:45:19 +0200 From: Thomas Gleixner To: LKML Cc: Josh Poimboeuf , x86@kernel.org, Andy Lutomirski , Steven Rostedt , Alexander Potapenko , Alexey Dobriyan , Andrew Morton , Christoph Lameter , Pekka Enberg , linux-mm@kvack.org, David Rientjes , Catalin Marinas , Dmitry Vyukov , Andrey Ryabinin , kasan-dev@googlegroups.com, Mike Rapoport , Akinobu Mita , Christoph Hellwig , iommu@lists.linux-foundation.org, Robin Murphy , Marek Szyprowski , Johannes Thumshirn , David Sterba , Chris Mason , Josef Bacik , linux-btrfs@vger.kernel.org, dm-devel@redhat.com, Mike Snitzer , Alasdair Kergon , Daniel Vetter , intel-gfx@lists.freedesktop.org, Joonas Lahtinen , Maarten Lankhorst , dri-devel@lists.freedesktop.org, David Airlie , Jani Nikula , Rodrigo Vivi , Tom Zanussi , Miroslav Benes , linux-arch@vger.kernel.org Subject: [patch V3 26/29] stacktrace: Remove obsolete functions References: <20190425094453.875139013@linutronix.de> MIME-Version: 1.0 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP No more users of the struct stack_trace based interfaces. Remove them. Remove the macro stubs for !CONFIG_STACKTRACE as well as they are pointless because the storage on the call sites is conditional on CONFIG_STACKTRACE already. No point to be 'smart'. Signed-off-by: Thomas Gleixner --- include/linux/stacktrace.h | 17 ----------------- kernel/stacktrace.c | 14 -------------- 2 files changed, 31 deletions(-) --- a/include/linux/stacktrace.h +++ b/include/linux/stacktrace.h @@ -36,24 +36,7 @@ extern void save_stack_trace_tsk(struct struct stack_trace *trace); extern int save_stack_trace_tsk_reliable(struct task_struct *tsk, struct stack_trace *trace); - -extern void print_stack_trace(struct stack_trace *trace, int spaces); -extern int snprint_stack_trace(char *buf, size_t size, - struct stack_trace *trace, int spaces); - -#ifdef CONFIG_USER_STACKTRACE_SUPPORT extern void save_stack_trace_user(struct stack_trace *trace); -#else -# define save_stack_trace_user(trace) do { } while (0) -#endif - -#else /* !CONFIG_STACKTRACE */ -# define save_stack_trace(trace) do { } while (0) -# define save_stack_trace_tsk(tsk, trace) do { } while (0) -# define save_stack_trace_user(trace) do { } while (0) -# define print_stack_trace(trace, spaces) do { } while (0) -# define snprint_stack_trace(buf, size, trace, spaces) do { } while (0) -# define save_stack_trace_tsk_reliable(tsk, trace) ({ -ENOSYS; }) #endif /* CONFIG_STACKTRACE */ #if defined(CONFIG_STACKTRACE) && defined(CONFIG_HAVE_RELIABLE_STACKTRACE) --- a/kernel/stacktrace.c +++ b/kernel/stacktrace.c @@ -30,12 +30,6 @@ void stack_trace_print(unsigned long *en } EXPORT_SYMBOL_GPL(stack_trace_print); -void print_stack_trace(struct stack_trace *trace, int spaces) -{ - stack_trace_print(trace->entries, trace->nr_entries, spaces); -} -EXPORT_SYMBOL_GPL(print_stack_trace); - /** * stack_trace_snprint - Print the entries in the stack trace into a buffer * @buf: Pointer to the print buffer @@ -72,14 +66,6 @@ int stack_trace_snprint(char *buf, size_ } EXPORT_SYMBOL_GPL(stack_trace_snprint); -int snprint_stack_trace(char *buf, size_t size, - struct stack_trace *trace, int spaces) -{ - return stack_trace_snprint(buf, size, trace->entries, - trace->nr_entries, spaces); -} -EXPORT_SYMBOL_GPL(snprint_stack_trace); - /* * Architectures that do not implement save_stack_trace_*() * get these weak aliases and once-per-bootup warnings