]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ARM: 8829/1: spinlock: use unified assembler language syntax
authorStefan Agner <stefan@agner.ch>
Thu, 24 Jan 2019 20:43:40 +0000 (21:43 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Fri, 1 Feb 2019 21:44:15 +0000 (21:44 +0000)
Convert the conditional infix to a postfix to make sure this inline
assembly is unified syntax. Since gcc assumes non-unified syntax
when emitting ARM instructions, make sure to define the syntax as
unified.

This allows to use LLVM's integrated assembler.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/include/asm/spinlock.h

index 099c78fcf62d43cd0a123b4d520d44a5d853a813..8f009e788ad401766b5b9456b6ac9f1ec75e84fe 100644 (file)
@@ -210,11 +210,12 @@ static inline void arch_read_lock(arch_rwlock_t *rw)
 
        prefetchw(&rw->lock);
        __asm__ __volatile__(
+"      .syntax unified\n"
 "1:    ldrex   %0, [%2]\n"
 "      adds    %0, %0, #1\n"
 "      strexpl %1, %0, [%2]\n"
        WFE("mi")
-"      rsbpls  %0, %1, #0\n"
+"      rsbspl  %0, %1, #0\n"
 "      bmi     1b"
        : "=&r" (tmp), "=&r" (tmp2)
        : "r" (&rw->lock)