hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/arch/parisc/include/asm/atomic.h
....@@ -34,13 +34,13 @@
3434 /* Can't use raw_spin_lock_irq because of #include problems, so
3535 * this is the substitute */
3636 #define _atomic_spin_lock_irqsave(l,f) do { \
37
- arch_spinlock_t *s = ATOMIC_HASH(l); \
37
+ arch_spinlock_t *s = ATOMIC_HASH(l); \
3838 local_irq_save(f); \
3939 arch_spin_lock(s); \
4040 } while(0)
4141
4242 #define _atomic_spin_unlock_irqrestore(l,f) do { \
43
- arch_spinlock_t *s = ATOMIC_HASH(l); \
43
+ arch_spinlock_t *s = ATOMIC_HASH(l); \
4444 arch_spin_unlock(s); \
4545 local_irq_restore(f); \
4646 } while(0)
....@@ -85,7 +85,7 @@
8585 _atomic_spin_lock_irqsave(v, flags); \
8686 v->counter c_op i; \
8787 _atomic_spin_unlock_irqrestore(v, flags); \
88
-} \
88
+}
8989
9090 #define ATOMIC_OP_RETURN(op, c_op) \
9191 static __inline__ int atomic_##op##_return(int i, atomic_t *v) \
....@@ -136,8 +136,6 @@
136136 #undef ATOMIC_OP_RETURN
137137 #undef ATOMIC_OP
138138
139
-#define ATOMIC_INIT(i) { (i) }
140
-
141139 #ifdef CONFIG_64BIT
142140
143141 #define ATOMIC64_INIT(i) { (i) }
....@@ -150,7 +148,7 @@
150148 _atomic_spin_lock_irqsave(v, flags); \
151149 v->counter c_op i; \
152150 _atomic_spin_unlock_irqrestore(v, flags); \
153
-} \
151
+}
154152
155153 #define ATOMIC64_OP_RETURN(op, c_op) \
156154 static __inline__ s64 atomic64_##op##_return(s64 i, atomic64_t *v) \