--- zzzz-none-000/linux-4.1.52/include/linux/lockdep.h 2018-05-28 02:26:45.000000000 +0000 +++ bcm63-7530ax-731/linux-4.1.52/include/linux/lockdep.h 2022-03-02 11:37:13.000000000 +0000 @@ -466,7 +466,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 @@ -535,7 +535,7 @@ void lockdep_rcu_suspicious(const char *file, const int line, const char *s); #else static inline void -lockdep_rcu_suspicious(const char *file, const int line, const char *s) +lockdep_rcu_suspicious(const char *file __maybe_unused, const int line __maybe_unused, const char *s __maybe_unused) { } #endif