hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
u-boot/include/asm-generic/atomic-long.h
....@@ -66,6 +66,7 @@
6666 atomic64_sub(i, v);
6767 }
6868
69
+#ifndef __UBOOT__
6970 static inline int atomic_long_sub_and_test(long i, atomic_long_t *l)
7071 {
7172 atomic64_t *v = (atomic64_t *)l;
....@@ -135,6 +136,7 @@
135136 (atomic64_cmpxchg((atomic64_t *)(l), (old), (new)))
136137 #define atomic_long_xchg(v, new) \
137138 (atomic64_xchg((atomic64_t *)(v), (new)))
139
+#endif /* __UBOOT__ */
138140
139141 #else /* BITS_PER_LONG == 64 */
140142