--- zzzz-none-000/linux-2.6.39.4/include/linux/spinlock.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/include/linux/spinlock.h 2021-11-10 13:23:10.000000000 +0000 @@ -141,7 +141,7 @@ } static inline void -do_raw_spin_lock_flags(raw_spinlock_t *lock, unsigned long *flags) __acquires(lock) +do_raw_spin_lock_flags(raw_spinlock_t *lock, unsigned long *flags __attribute__((unused))) __acquires(lock) { __acquire(lock); arch_spin_lock_flags(&lock->raw_lock, *flags);