--- zzzz-none-000/linux-2.6.32.61/include/linux/debug_locks.h 2013-06-10 09:43:48.000000000 +0000 +++ ar9-7330-650/linux-2.6.32.61/include/linux/debug_locks.h 2010-07-16 10:24:07.000000000 +0000 @@ -58,21 +58,21 @@ { } -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_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))) { } static inline void -debug_check_no_locks_held(struct task_struct *task) +debug_check_no_locks_held(struct task_struct *task __attribute__ ((unused))) { } #endif