--- zzzz-none-000/linux-4.1.52/include/linux/mutex.h 2018-05-28 02:26:45.000000000 +0000 +++ bcm63-7530ax-731/linux-4.1.52/include/linux/mutex.h 2022-03-02 11:37:13.000000000 +0000 @@ -96,7 +96,7 @@ \ __mutex_init((mutex), #mutex, &__key); \ } while (0) -static inline void mutex_destroy(struct mutex *lock) {} +static inline void mutex_destroy(struct mutex *lock __attribute__((unused))) {} #endif #ifdef CONFIG_DEBUG_LOCK_ALLOC