From a30da5e74c7809c068b457fec68f965a88dfff5f Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Sun, 3 Oct 2010 02:02:22 -0400 Subject: [PATCH] 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 --- src/rx/rx_stats.c | 5 +++++ 1 file changed, 5 insertions(+) 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" -- 2.39.5