aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/printk.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/printk.h')
-rw-r--r--include/linux/printk.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/linux/printk.h b/include/linux/printk.h
index 822171fcb1c8..6af944ab38f0 100644
--- a/include/linux/printk.h
+++ b/include/linux/printk.h
@@ -1,6 +1,7 @@
1#ifndef __KERNEL_PRINTK__ 1#ifndef __KERNEL_PRINTK__
2#define __KERNEL_PRINTK__ 2#define __KERNEL_PRINTK__
3 3
4#include <stdarg.h>
4#include <linux/init.h> 5#include <linux/init.h>
5#include <linux/kern_levels.h> 6#include <linux/kern_levels.h>
6 7
@@ -95,8 +96,14 @@ int no_printk(const char *fmt, ...)
95 return 0; 96 return 0;
96} 97}
97 98
99#ifdef CONFIG_EARLY_PRINTK
98extern asmlinkage __printf(1, 2) 100extern asmlinkage __printf(1, 2)
99void early_printk(const char *fmt, ...); 101void early_printk(const char *fmt, ...);
102void early_vprintk(const char *fmt, va_list ap);
103#else
104static inline __printf(1, 2) __cold
105void early_printk(const char *s, ...) { }
106#endif
100 107
101#ifdef CONFIG_PRINTK 108#ifdef CONFIG_PRINTK
102asmlinkage __printf(5, 0) 109asmlinkage __printf(5, 0)
@@ -138,6 +145,9 @@ extern void wake_up_klogd(void);
138 145
139void log_buf_kexec_setup(void); 146void log_buf_kexec_setup(void);
140void __init setup_log_buf(int early); 147void __init setup_log_buf(int early);
148void dump_stack_set_arch_desc(const char *fmt, ...);
149void dump_stack_print_info(const char *log_lvl);
150void show_regs_print_info(const char *log_lvl);
141#else 151#else
142static inline __printf(1, 0) 152static inline __printf(1, 0)
143int vprintk(const char *s, va_list args) 153int vprintk(const char *s, va_list args)
@@ -175,6 +185,18 @@ static inline void log_buf_kexec_setup(void)
175static inline void setup_log_buf(int early) 185static inline void setup_log_buf(int early)
176{ 186{
177} 187}
188
189static inline void dump_stack_set_arch_desc(const char *fmt, ...)
190{
191}
192
193static inline void dump_stack_print_info(const char *log_lvl)
194{
195}
196
197static inline void show_regs_print_info(const char *log_lvl)
198{
199}
178#endif 200#endif
179 201
180extern void dump_stack(void) __cold; 202extern void dump_stack(void) __cold;