From 5743c96bdea2e9aafeeeec3a1b4377d8860ef437 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Sun, 23 Oct 2011 21:23:34 +0100 Subject: [PATCH] rx: Define afs_kmutex_t for LWP too afs_kmutex_t is used for lock definitions in the kernel, and in pthreaded builds. LWP doesn't have any equivalent, and all structure members using this type have to be protected with RX_ENABLE_LOCKS, which starts to become untidy. Just make afs_kmutex_t an int for LWP, so that we can simplify our headers, at the expense of some additional storage on LWP builds (which are going away at some point, anyway) Change-Id: Iaa5683bdfd932c78a9a5d35b8a4530cecf5bdb37 Reviewed-on: http://gerrit.openafs.org/5660 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/rx/rx_lwp.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rx/rx_lwp.h b/src/rx/rx_lwp.h index c77ad9ca4d..3bfe8c9927 100644 --- a/src/rx/rx_lwp.h +++ b/src/rx/rx_lwp.h @@ -17,8 +17,12 @@ /* KDUMP_KERNEL is defined when kdump includes this header. */ #ifndef KDUMP_KERNEL +typedef int afs_kmutex_t; + #define CALL_HOLD(call, type) +#define CALL_HOLD_R(call, type) #define CALL_RELE(call, type) +#define CALL_RELE_R(call, type) #define MUTEX_DESTROY(a) #define MUTEX_ENTER(a)