kernel/include/linux/rwlock_types.h
.. .. @@ -1,6 +1,10 @@ 1 1 #ifndef __LINUX_RWLOCK_TYPES_H 2 2 #define __LINUX_RWLOCK_TYPES_H 3 3 4 +#if !defined(__LINUX_SPINLOCK_TYPES_H)5 +# error "Do not include directly, include spinlock_types.h"6 +#endif7 +4 8 /* 5 9 * include/linux/rwlock_types.h - generic rwlock type definitions 6 10 * and initializers