diff options
Diffstat (limited to 'include/linux/printk.h')
| -rw-r--r-- | include/linux/printk.h | 22 |
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 | ||
| 98 | extern asmlinkage __printf(1, 2) | 100 | extern asmlinkage __printf(1, 2) |
| 99 | void early_printk(const char *fmt, ...); | 101 | void early_printk(const char *fmt, ...); |
| 102 | void early_vprintk(const char *fmt, va_list ap); | ||
| 103 | #else | ||
| 104 | static inline __printf(1, 2) __cold | ||
| 105 | void early_printk(const char *s, ...) { } | ||
| 106 | #endif | ||
| 100 | 107 | ||
| 101 | #ifdef CONFIG_PRINTK | 108 | #ifdef CONFIG_PRINTK |
| 102 | asmlinkage __printf(5, 0) | 109 | asmlinkage __printf(5, 0) |
| @@ -138,6 +145,9 @@ extern void wake_up_klogd(void); | |||
| 138 | 145 | ||
| 139 | void log_buf_kexec_setup(void); | 146 | void log_buf_kexec_setup(void); |
| 140 | void __init setup_log_buf(int early); | 147 | void __init setup_log_buf(int early); |
| 148 | void dump_stack_set_arch_desc(const char *fmt, ...); | ||
| 149 | void dump_stack_print_info(const char *log_lvl); | ||
| 150 | void show_regs_print_info(const char *log_lvl); | ||
| 141 | #else | 151 | #else |
| 142 | static inline __printf(1, 0) | 152 | static inline __printf(1, 0) |
| 143 | int vprintk(const char *s, va_list args) | 153 | int vprintk(const char *s, va_list args) |
| @@ -175,6 +185,18 @@ static inline void log_buf_kexec_setup(void) | |||
| 175 | static inline void setup_log_buf(int early) | 185 | static inline void setup_log_buf(int early) |
| 176 | { | 186 | { |
| 177 | } | 187 | } |
| 188 | |||
| 189 | static inline void dump_stack_set_arch_desc(const char *fmt, ...) | ||
| 190 | { | ||
| 191 | } | ||
| 192 | |||
| 193 | static inline void dump_stack_print_info(const char *log_lvl) | ||
| 194 | { | ||
| 195 | } | ||
| 196 | |||
| 197 | static inline void show_regs_print_info(const char *log_lvl) | ||
| 198 | { | ||
| 199 | } | ||
| 178 | #endif | 200 | #endif |
| 179 | 201 | ||
| 180 | extern void dump_stack(void) __cold; | 202 | extern void dump_stack(void) __cold; |
