--- zzzz-none-000/linux-2.6.39.4/include/linux/radix-tree.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/include/linux/radix-tree.h 2021-11-10 13:23:10.000000000 +0000 @@ -156,7 +156,7 @@ * must hold the tree lock to prevent parallel updates. */ static inline void *radix_tree_deref_slot_protected(void **pslot, - spinlock_t *treelock) + spinlock_t *treelock __attribute__((unused))) { return rcu_dereference_protected(*pslot, lockdep_is_held(treelock)); }