From 410a55addfcd055ac666f9bc5450b238648d07bf Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Wed, 25 Jul 2012 10:45:16 -0500 Subject: [PATCH] rx: Raise minimum Linux atomics version to 2.6 Linux 2.4 does not have atomic_dec_return. If we switch to a dec_and_test-like API, then we could use the Linux 2.4 atomics. But for now, just raise the minimum to 2.6, and for 2.4 and below just use the generic atomics implementation so we can build. Change-Id: Ie584bd420839dbcbe3158fe7b50df633cb7eba6d Reviewed-on: http://gerrit.openafs.org/7875 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/rx/rx_atomic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rx/rx_atomic.h b/src/rx/rx_atomic.h index d8a5c90b0..028fbb2af 100644 --- a/src/rx/rx_atomic.h +++ b/src/rx/rx_atomic.h @@ -124,7 +124,7 @@ static_inline void rx_atomic_sub(rx_atomic_t *atomic, int change) { OSAtomicAdd32(0 - change, &atomic->var); } -#elif defined(AFS_LINUX20_ENV) && defined(KERNEL) +#elif defined(AFS_LINUX26_ENV) && defined(KERNEL) #include typedef atomic_t rx_atomic_t; -- 2.39.5