PV-on-HVM: Define DEFINE_RWLOCK() macro for older Linux kernels.

Signed-off-by: Ben Guthro <bguthro@virtualron.com>
This commit is contained in:
kfraser@localhost.localdomain committed 2007-08-30 16:17:07 +01:00
1 parent f4f4412534
commit abfd726ed8
1 file changed
+9
@@ -116,4 +116,13 @@ extern char *kasprintf(gfp_t gfp, const char *fmt, ...)
#define DEFINE_SEQLOCK(x) seqlock_t x = SEQLOCK_UNLOCKED
#endif
/* Bug in RHEL4-U3: rw_lock_t is mistakenly defined in DEFINE_RWLOCK() macro */
#if defined(__LINUX_SPINLOCK_H) && defined(DEFINE_RWLOCK)
#define rw_lock_t rwlock_t
#endif
#if defined(__LINUX_SPINLOCK_H) && !defined(DEFINE_RWLOCK)
#define DEFINE_RWLOCK(x) rwlock_t x = RW_LOCK_UNLOCKED
#endif
#endif
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.