--- zzzz-none-000/linux-4.1.52/include/linux/debug_locks.h 2018-05-28 02:26:45.000000000 +0000 +++ bcm63-7530ax-731/linux-4.1.52/include/linux/debug_locks.h 2022-03-02 11:37:13.000000000 +0000 @@ -57,12 +57,12 @@ { } -static inline void debug_show_held_locks(struct task_struct *task) +static inline void debug_show_held_locks(struct task_struct *task __attribute__((unused))) { } static inline void -debug_check_no_locks_freed(const void *from, unsigned long len) +debug_check_no_locks_freed(const void *from __attribute__((unused)), unsigned long len __attribute__((unused))) { }