diff options
-rw-r--r-- | include/linux/kernel.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index e9b492b33032..77b04ed037df 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -277,6 +277,11 @@ asmlinkage int vprintk(const char *fmt, va_list args) | |||
277 | asmlinkage int printk(const char * fmt, ...) | 277 | asmlinkage int printk(const char * fmt, ...) |
278 | __attribute__ ((format (printf, 1, 2))) __cold; | 278 | __attribute__ ((format (printf, 1, 2))) __cold; |
279 | 279 | ||
280 | /* | ||
281 | * Please don't use printk_ratelimit(), because it shares ratelimiting state | ||
282 | * with all other unrelated printk_ratelimit() callsites. Instead use | ||
283 | * printk_ratelimited() or plain old __ratelimit(). | ||
284 | */ | ||
280 | extern int __printk_ratelimit(const char *func); | 285 | extern int __printk_ratelimit(const char *func); |
281 | #define printk_ratelimit() __printk_ratelimit(__func__) | 286 | #define printk_ratelimit() __printk_ratelimit(__func__) |
282 | extern bool printk_timed_ratelimit(unsigned long *caller_jiffies, | 287 | extern bool printk_timed_ratelimit(unsigned long *caller_jiffies, |