mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
[MIPS] Use "=R" constraint to avoid compiler errors in cmpxchg().
Signed-off-by: Ralf Baechle <[email protected]>
This commit is contained in:
1 parent
e95a9ec1bb
commit
3e6cb2d38a
1 file changed
+4
-4
@@ -322,7 +322,7 @@ static inline unsigned long __cmpxchg_u32(volatile int * m, unsigned long old,
|
||||
#endif
|
||||
"2: \n"
|
||||
" .set pop \n"
|
||||
: "=&r" (retval), "=m" (*m)
|
||||
: "=&r" (retval), "=R" (*m)
|
||||
: "R" (*m), "Jr" (old), "Jr" (new)
|
||||
: "memory");
|
||||
} else if (cpu_has_llsc) {
|
||||
@@ -342,7 +342,7 @@ static inline unsigned long __cmpxchg_u32(volatile int * m, unsigned long old,
|
||||
#endif
|
||||
"2: \n"
|
||||
" .set pop \n"
|
||||
: "=&r" (retval), "=m" (*m)
|
||||
: "=&r" (retval), "=R" (*m)
|
||||
: "R" (*m), "Jr" (old), "Jr" (new)
|
||||
: "memory");
|
||||
} else {
|
||||
@@ -379,7 +379,7 @@ static inline unsigned long __cmpxchg_u64(volatile int * m, unsigned long old,
|
||||
#endif
|
||||
"2: \n"
|
||||
" .set pop \n"
|
||||
: "=&r" (retval), "=m" (*m)
|
||||
: "=&r" (retval), "=R" (*m)
|
||||
: "R" (*m), "Jr" (old), "Jr" (new)
|
||||
: "memory");
|
||||
} else if (cpu_has_llsc) {
|
||||
@@ -397,7 +397,7 @@ static inline unsigned long __cmpxchg_u64(volatile int * m, unsigned long old,
|
||||
#endif
|
||||
"2: \n"
|
||||
" .set pop \n"
|
||||
: "=&r" (retval), "=m" (*m)
|
||||
: "=&r" (retval), "=R" (*m)
|
||||
: "R" (*m), "Jr" (old), "Jr" (new)
|
||||
: "memory");
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user