--- zzzz-none-000/linux-2.6.39.4/arch/x86/include/asm/rwsem.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-atom-6490-729/linux-2.6.39.4/arch/x86/include/asm/rwsem.h 2021-11-10 13:38:14.000000000 +0000 @@ -99,7 +99,7 @@ /* * lock for writing */ -static inline void __down_write_nested(struct rw_semaphore *sem, int subclass) +static inline void __down_write_nested(struct rw_semaphore *sem, int subclass __attribute__((unused))) { long tmp; asm volatile("# beginning down_write\n\t"