From: Andrew Deason Date: Wed, 25 Jul 2012 15:45:16 +0000 (-0500) Subject: rx: Raise minimum Linux atomics version to 2.6 X-Git-Tag: upstream/1.8.0_pre1^2~2158 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=410a55addfcd055ac666f9bc5450b238648d07bf;p=packages%2Fo%2Fopenafs.git 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 --- 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;