diff options
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r-- | include/linux/kernel.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 2e70006c7fa8..f9cd7a513f9c 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -187,9 +187,6 @@ asmlinkage int vprintk(const char *fmt, va_list args) | |||
187 | __attribute__ ((format (printf, 1, 0))); | 187 | __attribute__ ((format (printf, 1, 0))); |
188 | asmlinkage int printk(const char * fmt, ...) | 188 | asmlinkage int printk(const char * fmt, ...) |
189 | __attribute__ ((format (printf, 1, 2))) __cold; | 189 | __attribute__ ((format (printf, 1, 2))) __cold; |
190 | extern int log_buf_get_len(void); | ||
191 | extern int log_buf_read(int idx); | ||
192 | extern int log_buf_copy(char *dest, int idx, int len); | ||
193 | 190 | ||
194 | extern int printk_ratelimit_jiffies; | 191 | extern int printk_ratelimit_jiffies; |
195 | extern int printk_ratelimit_burst; | 192 | extern int printk_ratelimit_burst; |
@@ -205,9 +202,6 @@ static inline int vprintk(const char *s, va_list args) { return 0; } | |||
205 | static inline int printk(const char *s, ...) | 202 | static inline int printk(const char *s, ...) |
206 | __attribute__ ((format (printf, 1, 2))); | 203 | __attribute__ ((format (printf, 1, 2))); |
207 | static inline int __cold printk(const char *s, ...) { return 0; } | 204 | static inline int __cold printk(const char *s, ...) { return 0; } |
208 | static inline int log_buf_get_len(void) { return 0; } | ||
209 | static inline int log_buf_read(int idx) { return 0; } | ||
210 | static inline int log_buf_copy(char *dest, int idx, int len) { return 0; } | ||
211 | static inline int printk_ratelimit(void) { return 0; } | 205 | static inline int printk_ratelimit(void) { return 0; } |
212 | static inline int __printk_ratelimit(int ratelimit_jiffies, \ | 206 | static inline int __printk_ratelimit(int ratelimit_jiffies, \ |
213 | int ratelimit_burst) { return 0; } | 207 | int ratelimit_burst) { return 0; } |
@@ -216,7 +210,7 @@ static inline bool printk_timed_ratelimit(unsigned long *caller_jiffies, \ | |||
216 | { return false; } | 210 | { return false; } |
217 | #endif | 211 | #endif |
218 | 212 | ||
219 | extern void __attribute__((format(printf, 1, 2))) | 213 | extern void asmlinkage __attribute__((format(printf, 1, 2))) |
220 | early_printk(const char *fmt, ...); | 214 | early_printk(const char *fmt, ...); |
221 | 215 | ||
222 | unsigned long int_sqrt(unsigned long); | 216 | unsigned long int_sqrt(unsigned long); |