--- zzzz-none-000/linux-5.15.111/include/linux/printk.h 2023-05-11 14:00:40.000000000 +0000 +++ puma7-atom-6670-761/linux-5.15.111/include/linux/printk.h 2024-02-07 10:23:27.000000000 +0000 @@ -9,6 +9,7 @@ #include #include #include +#include extern const char linux_banner[]; extern const char linux_proc_banner[]; @@ -143,6 +144,8 @@ struct dev_printk_info; +struct task_struct; + #ifdef CONFIG_PRINTK asmlinkage __printf(4, 0) int vprintk_emit(int facility, int level, @@ -194,8 +197,8 @@ void log_buf_vmcoreinfo_setup(void); void __init setup_log_buf(int early); __printf(1, 2) void dump_stack_set_arch_desc(const char *fmt, ...); -void dump_stack_print_info(const char *log_lvl); -void show_regs_print_info(const char *log_lvl); +void dump_stack_print_info(const char *log_lvl, struct task_struct *task); +void show_regs_print_info(const char *log_lvl, struct task_struct *task); extern asmlinkage void dump_stack_lvl(const char *log_lvl) __cold; extern asmlinkage void dump_stack(void) __cold; void printk_trigger_flush(void); @@ -260,11 +263,11 @@ { } -static inline void dump_stack_print_info(const char *log_lvl) +static inline void dump_stack_print_info(const char *log_lvl, struct task_struct *task) { } -static inline void show_regs_print_info(const char *log_lvl) +static inline void show_regs_print_info(const char *log_lvl, struct task_struct *task) { }