Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: locking/atomic: Fix atomic{_64,}_sub_if_positive

This looks like a typo and that caused atomic64 test failed.

Signed-off-by: Rui Wang <wangrui@loongson.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>

authored by

Rui Wang and committed by
Thomas Bogendoerfer
cb95ea79 ad548993

+1 -1
+1 -1
arch/mips/include/asm/atomic.h
··· 206 206 * The function returns the old value of @v minus @i. 207 207 */ 208 208 #define ATOMIC_SIP_OP(pfx, type, op, ll, sc) \ 209 - static __inline__ int arch_##pfx##_sub_if_positive(type i, pfx##_t * v) \ 209 + static __inline__ type arch_##pfx##_sub_if_positive(type i, pfx##_t * v) \ 210 210 { \ 211 211 type temp, result; \ 212 212 \