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

ARC: [plat-eznps] add missing atomic_fetch_xxx operations

Build brekeage since last changes to generic atomic operations.
Added couple of missing macros which are now mandatory

Signed-off-by: Noam Camus <noamca@mellanox.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>

authored by

Noam Camus and committed by
Vineet Gupta
ce0f4932 ce636527

+2
+2
arch/arc/include/asm/atomic.h
··· 285 285 ATOMIC_OPS(add, +=, CTOP_INST_AADD_DI_R2_R2_R3) 286 286 #define atomic_sub(i, v) atomic_add(-(i), (v)) 287 287 #define atomic_sub_return(i, v) atomic_add_return(-(i), (v)) 288 + #define atomic_fetch_sub(i, v) atomic_fetch_add(-(i), (v)) 288 289 289 290 #undef ATOMIC_OPS 290 291 #define ATOMIC_OPS(op, c_op, asm_op) \ ··· 294 293 295 294 ATOMIC_OPS(and, &=, CTOP_INST_AAND_DI_R2_R2_R3) 296 295 #define atomic_andnot(mask, v) atomic_and(~(mask), (v)) 296 + #define atomic_fetch_andnot(mask, v) atomic_fetch_and(~(mask), (v)) 297 297 ATOMIC_OPS(or, |=, CTOP_INST_AOR_DI_R2_R2_R3) 298 298 ATOMIC_OPS(xor, ^=, CTOP_INST_AXOR_DI_R2_R2_R3) 299 299