diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2021-10-30 16:17:38 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-11-01 10:08:38 +0100 |
commit | 531c74af49d70b7079488988fa0d11274b4bd599 (patch) | |
tree | 1df6d985de6140b2b26554fd3212d058a0dd5b66 /include/common.h | |
parent | 23bb859cfcefe5225851b00deaf7b61189b8c06d (diff) | |
download | barebox-531c74af49d70b7079488988fa0d11274b4bd599.tar.gz barebox-531c74af49d70b7079488988fa0d11274b4bd599.tar.xz |
include: <asm-generic/bug.h>: make self-contained
<asm-generic/bug.h> so far depended on a preceding <common.h> to get the
dump_stack() definition. Move dump_stack() to the new printk.h and drop
the remaining puts() use to make header self-contained.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20211030141739.2207431-4-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/common.h b/include/common.h index 083b76cfed..e37630243e 100644 --- a/include/common.h +++ b/include/common.h @@ -62,15 +62,6 @@ void ctrlc_handled(void); static inline void ctrlc_handled(void) { } #endif -#ifdef CONFIG_ARCH_HAS_STACK_DUMP -void dump_stack(void); -#else -static inline void dump_stack(void) -{ - printf("no stack data available\n"); -} -#endif - int parse_area_spec(const char *str, loff_t *start, loff_t *size); /* Just like simple_strtoul(), but this one honors a K/M/G suffix */ |