forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-09-20 a36159eec6ca17402b0e146b86efaf76568dc353
kernel/arch/mips/include/asm/atomic.h
....@@ -203,7 +203,7 @@
203203 * The function returns the old value of @v minus @i.
204204 */
205205 #define ATOMIC_SIP_OP(pfx, type, op, ll, sc) \
206
-static __inline__ int pfx##_sub_if_positive(type i, pfx##_t * v) \
206
+static __inline__ type pfx##_sub_if_positive(type i, pfx##_t * v) \
207207 { \
208208 type temp, result; \
209209 \