aboutsummaryrefslogtreecommitdiffstats
path: root/lib/atomic64_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/atomic64_test.c')
-rw-r--r--lib/atomic64_test.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/atomic64_test.c b/lib/atomic64_test.c
index dbb369145dda..46042901130f 100644
--- a/lib/atomic64_test.c
+++ b/lib/atomic64_test.c
@@ -213,7 +213,6 @@ static __init void test_atomic64(void)
213 r += one; 213 r += one;
214 BUG_ON(v.counter != r); 214 BUG_ON(v.counter != r);
215 215
216#ifdef CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE
217 INIT(onestwos); 216 INIT(onestwos);
218 BUG_ON(atomic64_dec_if_positive(&v) != (onestwos - 1)); 217 BUG_ON(atomic64_dec_if_positive(&v) != (onestwos - 1));
219 r -= one; 218 r -= one;
@@ -226,9 +225,6 @@ static __init void test_atomic64(void)
226 INIT(-one); 225 INIT(-one);
227 BUG_ON(atomic64_dec_if_positive(&v) != (-one - one)); 226 BUG_ON(atomic64_dec_if_positive(&v) != (-one - one));
228 BUG_ON(v.counter != r); 227 BUG_ON(v.counter != r);
229#else
230#warning Please implement atomic64_dec_if_positive for your architecture and select the above Kconfig symbol
231#endif
232 228
233 INIT(onestwos); 229 INIT(onestwos);
234 BUG_ON(!atomic64_inc_not_zero(&v)); 230 BUG_ON(!atomic64_inc_not_zero(&v));