--- zzzz-none-000/linux-4.9.279/include/linux/spinlock.h 2021-08-08 06:38:54.000000000 +0000 +++ puma7-arm-6591-750/linux-4.9.279/include/linux/spinlock.h 2023-02-08 10:58:16.000000000 +0000 @@ -149,7 +149,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 __maybe_unused) __acquires(lock) { __acquire(lock); arch_spin_lock_flags(&lock->raw_lock, *flags);