git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
87e748f
)
rx-dont-use-kmutex-outside-linux-kernel-20050413
author
Chaskiel M Grundman
<cg2v@andrew.cmu.edu>
Thu, 14 Apr 2005 01:54:25 +0000 (
01:54
+0000)
committer
Derrick Brashear
<shadow@dementia.org>
Thu, 14 Apr 2005 01:54:25 +0000 (
01:54
+0000)
FIXES 18261
don't use kmutex in prototypes outside linux kernel
src/rx/rx_prototypes.h
patch
|
blob
|
history
diff --git
a/src/rx/rx_prototypes.h
b/src/rx/rx_prototypes.h
index
35a086e
..
dc2d359
100644
(file)
--- a/
src/rx/rx_prototypes.h
+++ b/
src/rx/rx_prototypes.h
@@
-354,7
+354,7
@@
extern void osi_StopListener(void);
/* ARCH/rx_kmutex.c */
-#if defined(CONFIG_SMP) || defined(CONFIG_PREEMPT)
+#if defined(KERNEL) && defined(AFS_LINUX20_ENV) && (defined(CONFIG_SMP) || defined(CONFIG_PREEMPT))
extern void afs_mutex_init(afs_kmutex_t * l);
extern void afs_mutex_enter(afs_kmutex_t * l);
extern int afs_mutex_tryenter(afs_kmutex_t * l);