* [PATCH] lib: add s390 to atomic64_dec_if_positive archs
@ 2010-05-28 11:54 Heiko Carstens
0 siblings, 0 replies; only message in thread
From: Heiko Carstens @ 2010-05-28 11:54 UTC (permalink / raw)
To: H. Peter Anvin; +Cc: linux-kernel, Luca Barbieri
From: Heiko Carstens <heiko.carstens@de.ibm.com>
Add s390 to list of architectures that have atomic64_dec_if_positive
implemented so we get rid of this warning:
lib/atomic64_test.c:129:2: warning: #warning Please implement
atomic64_dec_if_positive for your architecture, and add it to the IF above
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Luca Barbieri <luca@luca-barbieri.com>
---
lib/atomic64_test.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/lib/atomic64_test.c
+++ b/lib/atomic64_test.c
@@ -112,7 +112,8 @@ static __init int test_atomic64(void)
r += one;
BUG_ON(v.counter != r);
-#if defined(CONFIG_X86) || defined(CONFIG_MIPS) || defined(CONFIG_PPC) || defined(_ASM_GENERIC_ATOMIC64_H)
+#if defined(CONFIG_X86) || defined(CONFIG_MIPS) || defined(CONFIG_PPC) || \
+ defined(CONFIG_S390) || defined(_ASM_GENERIC_ATOMIC64_H)
INIT(onestwos);
BUG_ON(atomic64_dec_if_positive(&v) != (onestwos - 1));
r -= one;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-05-28 11:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-28 11:54 [PATCH] lib: add s390 to atomic64_dec_if_positive archs Heiko Carstens
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome