Title: [9217] trunk/lib/atomic64_test.c: lib/atomic64_test: do not build on non-atomic64 systems
- Revision
- 9217
- Author
- vapier
- Date
- 2010-10-16 17:11:07 -0400 (Sat, 16 Oct 2010)
Log Message
lib/atomic64_test: do not build on non-atomic64 systems
If the arch doesn't provide atomic64 functionality (there are quite a
few), then don't bother trying to build this test.
Modified Paths
Diff
Modified: trunk/lib/atomic64_test.c (9216 => 9217)
--- trunk/lib/atomic64_test.c 2010-10-16 17:10:37 UTC (rev 9216)
+++ trunk/lib/atomic64_test.c 2010-10-16 21:11:07 UTC (rev 9217)
@@ -12,6 +12,8 @@
#include <linux/kernel.h>
#include <asm/atomic.h>
+#ifdef ATOMIC64_INIT
+
#define INIT(c) do { atomic64_set(&v, c); r = c; } while (0)
static __init int test_atomic64(void)
{
@@ -164,3 +166,5 @@
}
core_initcall(test_atomic64);
+
+#endif
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits