Skip to content

Commit fd7710c

Browse files
committed
MIPS: futex: Restore \n after sync instructions
Commit 3c1d3f0 ("MIPS: futex: Emit Loongson3 sync workarounds within asm") inadvertently removed the newlines following __WEAK_LLSC_MB, which causes build failures for configurations in which __WEAK_LLSC_MB expands to a sync instruction: {standard input}: Assembler messages: {standard input}:9346: Error: symbol `sync3' is already defined {standard input}:9380: Error: symbol `sync3' is already defined ... Fix this by restoring the newlines to separate the sync instruction from anything following it (such as the 3: label), preventing inadvertent concatenation. Signed-off-by: Paul Burton <paul.burton@mips.com> Fixes: 3c1d3f0 ("MIPS: futex: Emit Loongson3 sync workarounds within asm")
1 parent 9662dd7 commit fd7710c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎arch/mips/include/asm/futex.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
" .set arch=r4000 \n" \
3434
"2: sc $1, %2 \n" \
3535
" beqzl $1, 1b \n" \
36-
__stringify(__WEAK_LLSC_MB) \
36+
__stringify(__WEAK_LLSC_MB) " \n" \
3737
"3: \n" \
3838
" .insn \n" \
3939
" .set pop \n" \
@@ -63,7 +63,7 @@
6363
" .set "MIPS_ISA_ARCH_LEVEL" \n" \
6464
"2: "user_sc("$1", "%2")" \n" \
6565
" beqz $1, 1b \n" \
66-
__stringify(__WEAK_LLSC_MB) \
66+
__stringify(__WEAK_LLSC_MB) " \n" \
6767
"3: \n" \
6868
" .insn \n" \
6969
" .set pop \n" \
@@ -148,7 +148,7 @@ futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr,
148148
" .set arch=r4000 \n"
149149
"2: sc $1, %2 \n"
150150
" beqzl $1, 1b \n"
151-
__stringify(__WEAK_LLSC_MB)
151+
__stringify(__WEAK_LLSC_MB) " \n"
152152
"3: \n"
153153
" .insn \n"
154154
" .set pop \n"

0 commit comments

Comments
 (0)