Signed-off-by: John Kacur This patch fixes a compile error for platforms that are not using CONFIG_RWSEM_GENERIC_SPINLOCK that occurs when you don't configure CONFIG_PREEMPT_RT It should be folded into the rt-mutex-core.patch Index: linux-2.6.26.5-rt9/include/linux/rwsem.h =================================================================== --- linux-2.6.26.5-rt9.orig/include/linux/rwsem.h +++ linux-2.6.26.5-rt9/include/linux/rwsem.h @@ -146,10 +146,14 @@ static inline void downgrade_write(struc { compat_downgrade_write(rwsem); } + +#ifdef CONFIG_RWSEM_GENERIC_SPINLOCK static inline int rwsem_is_locked(struct compat_rw_semaphore *sem) { return compat_rwsem_is_locked(sem); } +#endif + # define down_read_nested(sem, subclass) \ compat_down_read_nested(sem, subclass) # define down_write_nested(sem, subclass) \