From patchwork Thu Apr 25 09:45:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Gleixner X-Patchwork-Id: 10916665 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 2ADAF14DB for ; Thu, 25 Apr 2019 10:00:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1B47928A08 for ; Thu, 25 Apr 2019 10:00:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0F6C728C55; Thu, 25 Apr 2019 10:00:55 +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 8CD1E28A08 for ; Thu, 25 Apr 2019 10:00:54 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5496A6B027A; Thu, 25 Apr 2019 05:59:51 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 4C9466B027B; Thu, 25 Apr 2019 05:59:51 -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 390D96B027C; Thu, 25 Apr 2019 05:59:51 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by kanga.kvack.org (Postfix) with ESMTP id E36406B027A for ; Thu, 25 Apr 2019 05:59:50 -0400 (EDT) Received: by mail-wm1-f71.google.com with SMTP id b133so5296633wmg.7 for ; Thu, 25 Apr 2019 02:59:50 -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=dtwsC8n4B8GouCY2f1douEN0y/UMZvMUJmpbBiyuz7o=; b=mhuuAUbANNu/SqvbAygpL7pXBuB/dGudlq8yGqDVOjqMsz2viKaRvY1T5NMFeznfoZ OAnGDwJGepvWt8FCKlxhlU0NCfOY3PYkuthd8xOzDc2J44RTDpRwacuGiNnMWAjvO9U8 qOcOtPZbIzAX6nzXANZ4p5tEO0miB3BYNxRImt+0x1jBTKtjuDfSEvaavzDOF/4P9a05 eNJw7n0pOgLtqQ8eezVVzFWFyPa148+DfoUSTyhsfhuxpozlZjrvd51aYJOo/Eo+iZrI Vzr9xsawWFu/sjb++AI2o6M4tThSqYMz3XEZ3J3jsY+JvSiGmQwKGnvL1frXwUZMGRLl arPw== 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: APjAAAV2WJHPnfBiEboviXK5//4WsEFZBmkJFy/MJAUtKBZu/eR5LGhB MwIcf6sgCbK8dDPEnxxKcvUb9Aj9ZSYO4SMYXoit2LHC3fddQr2eB5y/CUmfMgLgmBFKGjNyvJD q8AC7GMEeSLdbpFNz7iu09CnqH7WuoYsSpK2XjvchXZ0F80XdYXMyy0hcTgzS0BZWgQ== X-Received: by 2002:a1c:67c4:: with SMTP id b187mr2757788wmc.148.1556186390458; Thu, 25 Apr 2019 02:59:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqwMAB9JX1y98M5c9ObK0pFWBLmWNfbtMh5csZ6VU10y01WI/vbAJARLb8bmlDu2UjSU8UZD X-Received: by 2002:a1c:67c4:: with SMTP id b187mr2757726wmc.148.1556186389308; Thu, 25 Apr 2019 02:59:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556186389; cv=none; d=google.com; s=arc-20160816; b=xUUNw3neFUmwIqWo2Y/t3aX4dTSkiZfM0DBN7HmWdfoLst1bPBk+4CnYi3+Lj0U2/m HV7oiwtoUsqyhVF27aj/chJ23niexz6tCNVeaC1hlwKy23cQ+xO3xC3ynV4yqZtTjovR m8jhTedTCTk8l2kYIfbx2dDEYGOzy8queoXA6wNeyE47DDyJsKJyImaXpydlNHKl8dUf +pvDKW2FG/YPPM3mThDuAmd/oiangyAigMg2cuvoxCFPgU6NiiZS8xPndhG4WglDmkSZ F3hrIe4RKDgMMhclkzSrm/xCFxQxDGKR4xCtZQWFFC439WShtLJCMXVIgww39aIFl9UI nTDg== 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=dtwsC8n4B8GouCY2f1douEN0y/UMZvMUJmpbBiyuz7o=; b=sXpXJQB68LZXxnlYcGhlNBrsT5GVibFgnCJRup4chegmwktNCUi7QSr6y6vDlQbj/n KhYmcuhsrJk+BvdBTGNqamnNtlWXYkRKsF9lpILfXjw9qFgKoAlbaJY1w9kmMrKFkkzY xv9A8Wlx3q92aRBCbWiFbOnI4Ey3s7Nr7LzqLlMAmjV1mBZVz3TyFqqQ/FjvR3oLwMf0 aeIm/MDzgwBkKNyFC6GPRt2UwoucRQ9Mx6GFN82kbyoPJlGouLtKScmsZ5H/uXlqW3sR eO1WcY2rSRRgVC2IXR+XDiPG1sP98GyPc+Nma+jrw0HrW0v+BgRtBqnrM981jppffRJU C+Kw== 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 d15si7113304wrv.294.2019.04.25.02.59.49 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 25 Apr 2019 02:59:49 -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 1hJbAN-000201-Iv; Thu, 25 Apr 2019 11:59:44 +0200 Message-Id: <20190425094803.617937448@linutronix.de> User-Agent: quilt/0.65 Date: Thu, 25 Apr 2019 11:45:20 +0200 From: Thomas Gleixner To: LKML Cc: Josh Poimboeuf , x86@kernel.org, Andy Lutomirski , Alexander Potapenko , Steven Rostedt , 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 27/29] lib/stackdepot: 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. Signed-off-by: Thomas Gleixner Acked-by: Alexander Potapenko --- include/linux/stackdepot.h | 4 ---- lib/stackdepot.c | 20 -------------------- 2 files changed, 24 deletions(-) --- a/include/linux/stackdepot.h +++ b/include/linux/stackdepot.h @@ -23,13 +23,9 @@ typedef u32 depot_stack_handle_t; -struct stack_trace; - -depot_stack_handle_t depot_save_stack(struct stack_trace *trace, gfp_t flags); depot_stack_handle_t stack_depot_save(unsigned long *entries, unsigned int nr_entries, gfp_t gfp_flags); -void depot_fetch_stack(depot_stack_handle_t handle, struct stack_trace *trace); unsigned int stack_depot_fetch(depot_stack_handle_t handle, unsigned long **entries); --- a/lib/stackdepot.c +++ b/lib/stackdepot.c @@ -216,14 +216,6 @@ unsigned int stack_depot_fetch(depot_sta } EXPORT_SYMBOL_GPL(stack_depot_fetch); -void depot_fetch_stack(depot_stack_handle_t handle, struct stack_trace *trace) -{ - unsigned int nent = stack_depot_fetch(handle, &trace->entries); - - trace->max_entries = trace->nr_entries = nent; -} -EXPORT_SYMBOL_GPL(depot_fetch_stack); - /** * stack_depot_save - Save a stack trace from an array * @@ -318,15 +310,3 @@ depot_stack_handle_t stack_depot_save(un return retval; } EXPORT_SYMBOL_GPL(stack_depot_save); - -/** - * depot_save_stack - save stack in a stack depot. - * @trace - the stacktrace to save. - * @alloc_flags - flags for allocating additional memory if required. - */ -depot_stack_handle_t depot_save_stack(struct stack_trace *trace, - gfp_t alloc_flags) -{ - return stack_depot_save(trace->entries, trace->nr_entries, alloc_flags); -} -EXPORT_SYMBOL_GPL(depot_save_stack);