diff options
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r-- | include/linux/kernel.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 5fdbc814c2eb..c680e1e6e9a3 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -172,6 +172,9 @@ asmlinkage int vprintk(const char *fmt, va_list args) | |||
172 | __attribute__ ((format (printf, 1, 0))); | 172 | __attribute__ ((format (printf, 1, 0))); |
173 | asmlinkage int printk(const char * fmt, ...) | 173 | asmlinkage int printk(const char * fmt, ...) |
174 | __attribute__ ((format (printf, 1, 2))) __cold; | 174 | __attribute__ ((format (printf, 1, 2))) __cold; |
175 | extern int log_buf_get_len(void); | ||
176 | extern int log_buf_read(int idx); | ||
177 | extern int log_buf_copy(char *dest, int idx, int len); | ||
175 | #else | 178 | #else |
176 | static inline int vprintk(const char *s, va_list args) | 179 | static inline int vprintk(const char *s, va_list args) |
177 | __attribute__ ((format (printf, 1, 0))); | 180 | __attribute__ ((format (printf, 1, 0))); |
@@ -179,6 +182,9 @@ static inline int vprintk(const char *s, va_list args) { return 0; } | |||
179 | static inline int printk(const char *s, ...) | 182 | static inline int printk(const char *s, ...) |
180 | __attribute__ ((format (printf, 1, 2))); | 183 | __attribute__ ((format (printf, 1, 2))); |
181 | static inline int __cold printk(const char *s, ...) { return 0; } | 184 | static inline int __cold printk(const char *s, ...) { return 0; } |
185 | static inline int log_buf_get_len(void) { return 0; } | ||
186 | static inline int log_buf_read(int idx) { return 0; } | ||
187 | static inline int log_buf_copy(char *dest, int idx, int len) { return 0; } | ||
182 | #endif | 188 | #endif |
183 | 189 | ||
184 | unsigned long int_sqrt(unsigned long); | 190 | unsigned long int_sqrt(unsigned long); |