diff options
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r-- | include/linux/kernel.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index e720b0da7751..556d781e69fe 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -242,6 +242,7 @@ extern struct ratelimit_state printk_ratelimit_state; | |||
242 | extern int printk_ratelimit(void); | 242 | extern int printk_ratelimit(void); |
243 | extern bool printk_timed_ratelimit(unsigned long *caller_jiffies, | 243 | extern bool printk_timed_ratelimit(unsigned long *caller_jiffies, |
244 | unsigned int interval_msec); | 244 | unsigned int interval_msec); |
245 | void log_buf_kexec_setup(void); | ||
245 | #else | 246 | #else |
246 | static inline int vprintk(const char *s, va_list args) | 247 | static inline int vprintk(const char *s, va_list args) |
247 | __attribute__ ((format (printf, 1, 0))); | 248 | __attribute__ ((format (printf, 1, 0))); |
@@ -253,6 +254,9 @@ static inline int printk_ratelimit(void) { return 0; } | |||
253 | static inline bool printk_timed_ratelimit(unsigned long *caller_jiffies, \ | 254 | static inline bool printk_timed_ratelimit(unsigned long *caller_jiffies, \ |
254 | unsigned int interval_msec) \ | 255 | unsigned int interval_msec) \ |
255 | { return false; } | 256 | { return false; } |
257 | static inline void log_buf_kexec_setup(void) | ||
258 | { | ||
259 | } | ||
256 | #endif | 260 | #endif |
257 | 261 | ||
258 | extern int printk_needs_cpu(int cpu); | 262 | extern int printk_needs_cpu(int cpu); |