--- zzzz-none-000/linux-2.6.39.4/include/linux/rtmutex.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/include/linux/rtmutex.h 2021-11-10 13:23:10.000000000 +0000 @@ -45,8 +45,8 @@ unsigned long len); extern void rt_mutex_debug_check_no_locks_held(struct task_struct *task); #else - static inline int rt_mutex_debug_check_no_locks_freed(const void *from, - unsigned long len) + static inline int rt_mutex_debug_check_no_locks_freed(const void *from __attribute__((unused)), + unsigned long len __attribute__((unused))) { return 0; }