Skip to content

Commit e9f8f48

Browse files
committed
Merge tag 'metag-for-v4.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jhogan/metag
Pull metag architecture fix from James Hogan: "A simple build fix for irqsoff atomics which has started hitting meta1_defconfig during the 4.9 merge window" * tag 'metag-for-v4.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jhogan/metag: metag: Only define atomic_dec_if_positive conditionally
2 parents d8bfb96 + 35d0407 commit e9f8f48

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/metag/include/asm/atomic.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,10 @@
3939
#define atomic_dec(v) atomic_sub(1, (v))
4040

4141
#define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0)
42+
#define atomic_dec_if_positive(v) atomic_sub_if_positive(1, v)
4243

4344
#endif
4445

45-
#define atomic_dec_if_positive(v) atomic_sub_if_positive(1, v)
46-
4746
#include <asm-generic/atomic64.h>
4847

4948
#endif /* __ASM_METAG_ATOMIC_H */

0 commit comments

Comments
 (0)