From: Derrick Brashear Date: Sun, 3 Oct 2010 06:02:22 +0000 (-0400) Subject: rx stats atomic inclusion needs kmutexes for emulation X-Git-Tag: upstream/1.8.0_pre1^2~4722 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=a30da5e74c7809c068b457fec68f965a88dfff5f;p=packages%2Fo%2Fopenafs.git rx stats atomic inclusion needs kmutexes for emulation for platforms with no native atomics we use a mutex. well, fine, but without defining kernel mutexes, that doesn't work so well. Change-Id: Ia85e24aad8684a3855511de9548acee4ab86e83e Reviewed-on: http://gerrit.openafs.org/2890 Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- diff --git a/src/rx/rx_stats.c b/src/rx/rx_stats.c index 5c22ab6ca..c4c0d1283 100644 --- a/src/rx/rx_stats.c +++ b/src/rx/rx_stats.c @@ -35,7 +35,12 @@ #include #endif +#ifdef KERNEL +/* no kmutex, no atomic emulation...*/ +#include "rx/rx_kcommon.h" +#else #include "rx.h" +#endif #include "rx_atomic.h" #include "rx_stats.h"