--- zzzz-none-000/linux-3.10.107/include/linux/lockdep.h 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/include/linux/lockdep.h 2021-11-10 11:53:56.000000000 +0000 @@ -462,7 +462,7 @@ #ifdef CONFIG_TRACE_IRQFLAGS extern void print_irqtrace_events(struct task_struct *curr); #else -static inline void print_irqtrace_events(struct task_struct *curr) +static inline void print_irqtrace_events(struct task_struct *curr __attribute__((unused))) { } #endif