--- zzzz-none-000/linux-2.6.39.4/include/linux/lockdep.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-atom-6490-729/linux-2.6.39.4/include/linux/lockdep.h 2021-11-10 13:38:17.000000000 +0000 @@ -436,9 +436,9 @@ #endif /* CONFIG_LOCKDEP */ #ifdef CONFIG_TRACE_IRQFLAGS -extern void print_irqtrace_events(struct task_struct *curr); +extern void print_irqtrace_events(struct task_struct *curr __attribute__((unused))); #else -static inline void print_irqtrace_events(struct task_struct *curr) +static inline void print_irqtrace_events(struct task_struct *curr __attribute__((unused))) { } #endif