/************** Linux memory allocator interface functions **********/
#if defined(AFS_LINUX24_ENV)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
+DEFINE_MUTEX(afs_linux_alloc_sem);
+#else
DECLARE_MUTEX(afs_linux_alloc_sem);
+#endif
#else
struct semaphore afs_linux_alloc_sem = MUTEX;
#endif
* test if no creds in pool before grabbing lock in crfree().
*/
#if defined(AFS_LINUX24_ENV)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
+static DEFINE_MUTEX(linux_cred_pool_lock);
+#else
static DECLARE_MUTEX(linux_cred_pool_lock);
+#endif
#else
static struct semaphore linux_cred_pool_lock = MUTEX;
#endif
MODULE_PARM_DESC(this_cell, "Local cell name");
#if defined(AFS_LINUX24_ENV)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
+DEFINE_MUTEX(afs_global_lock);
+#else
DECLARE_MUTEX(afs_global_lock);
+#endif
struct proc_dir_entry *openafs_procfs;
#else
struct semaphore afs_global_lock = MUTEX;