From 2f529f9b558ca1c1bd74be7437a84e4711743404 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Fri, 01 Nov 2024 02:11:33 +0000 Subject: [PATCH] add xenomai --- kernel/include/linux/printk.h | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/kernel/include/linux/printk.h b/kernel/include/linux/printk.h index 14d13ec..270fa48 100644 --- a/kernel/include/linux/printk.h +++ b/kernel/include/linux/printk.h @@ -160,7 +160,22 @@ static inline void printk_nmi_direct_exit(void) { } #endif /* PRINTK_NMI */ + struct dev_printk_info; + +#ifdef CONFIG_RAW_PRINTK +void raw_puts(const char *s, size_t len); +void raw_vprintk(const char *fmt, va_list ap); +asmlinkage __printf(1, 2) +void raw_printk(const char *fmt, ...); +#else +static inline __cold +void raw_puts(const char *s, size_t len) { } +static inline __cold +void raw_vprintk(const char *s, va_list ap) { } +static inline __printf(1, 2) __cold +void raw_printk(const char *s, ...) { } +#endif #ifdef CONFIG_PRINTK asmlinkage __printf(4, 0) @@ -512,7 +527,7 @@ DEFAULT_RATELIMIT_INTERVAL, \ DEFAULT_RATELIMIT_BURST); \ \ - if (__ratelimit(&_rs)) \ + if (running_oob() || __ratelimit(&_rs)) \ printk(fmt, ##__VA_ARGS__); \ }) #else -- Gitblit v1.6.2