kernel/include/linux/spinlock_api_smp.h
.. .. @@ -187,6 +187,8 @@ 187 187 return 0; 188 188 } 189 189 190 -#include <linux/rwlock_api_smp.h>190 +#ifndef CONFIG_PREEMPT_RT_FULL191 +# include <linux/rwlock_api_smp.h>192 +#endif191 193 192 194 #endif /* __LINUX_SPINLOCK_API_SMP_H */