summaryrefslogtreecommitdiff
path: root/arch/arc
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@kernel.org>2020-05-05 22:59:57 -0700
committerVineet Gupta <vgupta@kernel.org>2021-08-24 14:25:46 -0700
commitca766f04ad1dc4527e3e388fe3736e6b1bf0e6b2 (patch)
treeb483b83d8c278103786dc89baa2ecea315e5ac25 /arch/arc
parentb1040148b2ea4ecbdb60c0d20393f4d15eee13ac (diff)
ARC: atomic: !LLSC: use int data type consistently
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Vineet Gupta <vgupta@kernel.org>
Diffstat (limited to 'arch/arc')
-rw-r--r--arch/arc/include/asm/atomic-spinlock.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arc/include/asm/atomic-spinlock.h b/arch/arc/include/asm/atomic-spinlock.h
index 8c6fd0e651e5..2c830347bfb4 100644
--- a/arch/arc/include/asm/atomic-spinlock.h
+++ b/arch/arc/include/asm/atomic-spinlock.h
@@ -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 \