--- zzzz-none-000/linux-4.19.183/include/linux/printk.h 2021-03-24 10:07:39.000000000 +0000 +++ bcm63-7530ax-756/linux-4.19.183/include/linux/printk.h 2023-06-28 08:54:20.000000000 +0000 @@ -174,6 +174,17 @@ asmlinkage __printf(1, 2) __cold int printk(const char *fmt, ...); +asmlinkage __printf(1, 0) +int vprintk(const char *fmt, va_list args); + +#ifdef CONFIG_AVM_ENHANCED +asmlinkage __printf(1, 2) __cold +int printk_linux(const char *fmt, ...); + +extern void vprintk_restore(void); /* depreciated: use printk_avm_console_bend() instead */ +extern int printk_avm_console_bend(unsigned int activate); +#endif + /* * Special printk facility for scheduler/timekeeping use only, _DO_NOT_USE_ ! */ @@ -224,6 +235,30 @@ { return 0; } +#ifdef CONFIG_AVM_ENHANCED +static inline __printf(1, 2) __cold +int printk_linux(const char *fmt __maybe_unused, ...) +{ + return 0; +} +static inline int printk_avm_console_bend(unsigned int activate __maybe_unused) { + return 0; +} +#endif + +static inline __printf(5, 0) __cold +int vprintk_emit(int facility __maybe_unused, int level __maybe_unused, + const char *dict __maybe_unused, size_t dictlen __maybe_unused, + const char *fmt __maybe_unused, va_list args __maybe_unused) +{ + return 0; +} + +static inline __printf(1, 2) __cold +int printk_sched(const char *s __maybe_unused, ...) +{ + return 0; +} static inline int printk_ratelimit(void) { return 0; @@ -283,6 +318,11 @@ extern int kptr_restrict; +/* extra ratelimit state for bcm_printk() and blog_dump() debugs. */ +extern int __bcm_printk_ratelimit(const char *func); +#define bcm_printk_ratelimit() __bcm_printk_ratelimit(__func__) + + #ifndef pr_fmt #define pr_fmt(fmt) fmt #endif