aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/stacktrace.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2019-04-25 05:45:19 -0400
committerThomas Gleixner <tglx@linutronix.de>2019-04-29 06:37:57 -0400
commit988ec8841ca1e22b2978fce0134d8267e838770e (patch)
tree38db646b1c687c94d6e9a0d66d7781e72b8a687c /include/linux/stacktrace.h
parent25e39e32b0a3f99b9db320605f20f91d425b6a65 (diff)
stacktrace: Remove obsolete functions
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 <tglx@linutronix.de> Reviewed-by: Josh Poimboeuf <jpoimboe@redhat.com> Cc: Andy Lutomirski <luto@kernel.org> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Alexander Potapenko <glider@google.com> 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.524796783@linutronix.de
Diffstat (limited to 'include/linux/stacktrace.h')
-rw-r--r--include/linux/stacktrace.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/include/linux/stacktrace.h b/include/linux/stacktrace.h
index a24340b3e9e1..40decfbb9a24 100644
--- a/include/linux/stacktrace.h
+++ b/include/linux/stacktrace.h
@@ -36,24 +36,7 @@ extern void save_stack_trace_tsk(struct task_struct *tsk,
36 struct stack_trace *trace); 36 struct stack_trace *trace);
37extern int save_stack_trace_tsk_reliable(struct task_struct *tsk, 37extern int save_stack_trace_tsk_reliable(struct task_struct *tsk,
38 struct stack_trace *trace); 38 struct stack_trace *trace);
39
40extern void print_stack_trace(struct stack_trace *trace, int spaces);
41extern int snprint_stack_trace(char *buf, size_t size,
42 struct stack_trace *trace, int spaces);
43
44#ifdef CONFIG_USER_STACKTRACE_SUPPORT
45extern void save_stack_trace_user(struct stack_trace *trace); 39extern void save_stack_trace_user(struct stack_trace *trace);
46#else
47# define save_stack_trace_user(trace) do { } while (0)
48#endif
49
50#else /* !CONFIG_STACKTRACE */
51# define save_stack_trace(trace) do { } while (0)
52# define save_stack_trace_tsk(tsk, trace) do { } while (0)
53# define save_stack_trace_user(trace) do { } while (0)
54# define print_stack_trace(trace, spaces) do { } while (0)
55# define snprint_stack_trace(buf, size, trace, spaces) do { } while (0)
56# define save_stack_trace_tsk_reliable(tsk, trace) ({ -ENOSYS; })
57#endif /* CONFIG_STACKTRACE */ 40#endif /* CONFIG_STACKTRACE */
58 41
59#if defined(CONFIG_STACKTRACE) && defined(CONFIG_HAVE_RELIABLE_STACKTRACE) 42#if defined(CONFIG_STACKTRACE) && defined(CONFIG_HAVE_RELIABLE_STACKTRACE)