summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2019-04-25 05:45:20 -0400
committerThomas Gleixner <tglx@linutronix.de>2019-04-29 06:37:57 -0400
commit56d8f079c51afc8b564b9fb0252d48e7b437c1e5 (patch)
treebf0f2917e2b9cf5c5a94c9c188310c7d95a20a8b
parent988ec8841ca1e22b2978fce0134d8267e838770e (diff)
lib/stackdepot: Remove obsolete functions
No more users of the struct stack_trace based interfaces. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Josh Poimboeuf <jpoimboe@redhat.com> Acked-by: Alexander Potapenko <glider@google.com> Cc: Andy Lutomirski <luto@kernel.org> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Alexey Dobriyan <adobriyan@gmail.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Christoph Lameter <cl@linux.com> Cc: Pekka Enberg <penberg@kernel.org> Cc: linux-mm@kvack.org Cc: David Rientjes <rientjes@google.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Dmitry Vyukov <dvyukov@google.com> Cc: Andrey Ryabinin <aryabinin@virtuozzo.com> Cc: kasan-dev@googlegroups.com Cc: Mike Rapoport <rppt@linux.vnet.ibm.com> Cc: Akinobu Mita <akinobu.mita@gmail.com> Cc: Christoph Hellwig <hch@lst.de> Cc: iommu@lists.linux-foundation.org Cc: Robin Murphy <robin.murphy@arm.com> Cc: Marek Szyprowski <m.szyprowski@samsung.com> Cc: Johannes Thumshirn <jthumshirn@suse.de> Cc: David Sterba <dsterba@suse.com> Cc: Chris Mason <clm@fb.com> Cc: Josef Bacik <josef@toxicpanda.com> Cc: linux-btrfs@vger.kernel.org Cc: dm-devel@redhat.com Cc: Mike Snitzer <snitzer@redhat.com> Cc: Alasdair Kergon <agk@redhat.com> Cc: Daniel Vetter <daniel@ffwll.ch> Cc: intel-gfx@lists.freedesktop.org Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Cc: dri-devel@lists.freedesktop.org Cc: David Airlie <airlied@linux.ie> Cc: Jani Nikula <jani.nikula@linux.intel.com> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> Cc: Tom Zanussi <tom.zanussi@linux.intel.com> Cc: Miroslav Benes <mbenes@suse.cz> Cc: linux-arch@vger.kernel.org Link: https://lkml.kernel.org/r/20190425094803.617937448@linutronix.de
-rw-r--r--include/linux/stackdepot.h4
-rw-r--r--lib/stackdepot.c20
2 files changed, 0 insertions, 24 deletions
diff --git a/include/linux/stackdepot.h b/include/linux/stackdepot.h
index 4297c6d2991d..0805dee1b6b8 100644
--- a/include/linux/stackdepot.h
+++ b/include/linux/stackdepot.h
@@ -23,13 +23,9 @@
23 23
24typedef u32 depot_stack_handle_t; 24typedef u32 depot_stack_handle_t;
25 25
26struct stack_trace;
27
28depot_stack_handle_t depot_save_stack(struct stack_trace *trace, gfp_t flags);
29depot_stack_handle_t stack_depot_save(unsigned long *entries, 26depot_stack_handle_t stack_depot_save(unsigned long *entries,
30 unsigned int nr_entries, gfp_t gfp_flags); 27 unsigned int nr_entries, gfp_t gfp_flags);
31 28
32void depot_fetch_stack(depot_stack_handle_t handle, struct stack_trace *trace);
33unsigned int stack_depot_fetch(depot_stack_handle_t handle, 29unsigned int stack_depot_fetch(depot_stack_handle_t handle,
34 unsigned long **entries); 30 unsigned long **entries);
35 31
diff --git a/lib/stackdepot.c b/lib/stackdepot.c
index e84f8e58495c..605c61f65d94 100644
--- a/lib/stackdepot.c
+++ b/lib/stackdepot.c
@@ -216,14 +216,6 @@ unsigned int stack_depot_fetch(depot_stack_handle_t handle,
216} 216}
217EXPORT_SYMBOL_GPL(stack_depot_fetch); 217EXPORT_SYMBOL_GPL(stack_depot_fetch);
218 218
219void depot_fetch_stack(depot_stack_handle_t handle, struct stack_trace *trace)
220{
221 unsigned int nent = stack_depot_fetch(handle, &trace->entries);
222
223 trace->max_entries = trace->nr_entries = nent;
224}
225EXPORT_SYMBOL_GPL(depot_fetch_stack);
226
227/** 219/**
228 * stack_depot_save - Save a stack trace from an array 220 * stack_depot_save - Save a stack trace from an array
229 * 221 *
@@ -318,15 +310,3 @@ fast_exit:
318 return retval; 310 return retval;
319} 311}
320EXPORT_SYMBOL_GPL(stack_depot_save); 312EXPORT_SYMBOL_GPL(stack_depot_save);
321
322/**
323 * depot_save_stack - save stack in a stack depot.
324 * @trace - the stacktrace to save.
325 * @alloc_flags - flags for allocating additional memory if required.
326 */
327depot_stack_handle_t depot_save_stack(struct stack_trace *trace,
328 gfp_t alloc_flags)
329{
330 return stack_depot_save(trace->entries, trace->nr_entries, alloc_flags);
331}
332EXPORT_SYMBOL_GPL(depot_save_stack);