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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/printk.h b/include/linux/printk.h
index 822171fcb1c8..4890fe62c011 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)