ARC: atomic: !LLSC: use int data type consistently
authorVineet Gupta <vgupta@kernel.org>
Wed, 6 May 2020 05:59:57 +0000 (22:59 -0700)
committerVineet Gupta <vgupta@kernel.org>
Tue, 24 Aug 2021 21:25:46 +0000 (14:25 -0700)
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Vineet Gupta <vgupta@kernel.org>
arch/arc/include/asm/atomic-spinlock.h

index 8c6fd0e..2c83034 100644 (file)
@@ -42,7 +42,7 @@ static inline void arch_atomic_##op(int i, atomic_t *v)                       \
 static inline int arch_atomic_##op##_return(int i, atomic_t *v)                \
 {                                                                      \
        unsigned long flags;                                            \
-       unsigned long temp;                                             \
+       unsigned int temp;                                              \
                                                                        \
        /*                                                              \
         * spin lock/unlock provides the needed smp_mb() before/after   \
@@ -60,7 +60,7 @@ static inline int arch_atomic_##op##_return(int i, atomic_t *v)               \
 static inline int arch_atomic_fetch_##op(int i, atomic_t *v)           \
 {                                                                      \
        unsigned long flags;                                            \
-       unsigned long orig;                                             \
+       unsigned int orig;                                              \
                                                                        \
        /*                                                              \
         * spin lock/unlock provides the needed smp_mb() before/after   \