]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: futex: Restore \n after sync instructions
authorPaul Burton <paul.burton@mips.com>
Mon, 7 Oct 2019 19:58:44 +0000 (12:58 -0700)
committerPaul Burton <paul.burton@mips.com>
Mon, 7 Oct 2019 19:58:44 +0000 (12:58 -0700)
commit8ed276176fa1aabd5695bcfe9f7761ad8aa4379b
tree07a6845eaa3d2b363d30db13704cca63aec5d3a2
parent984e3e7bba4682bbe92f7697510e260dc43aba2a
MIPS: futex: Restore \n after sync instructions

Commit 8231d6974f02 ("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: 8231d6974f02 ("MIPS: futex: Emit Loongson3 sync workarounds within asm")
arch/mips/include/asm/futex.h