powerpc/uaccess: Add pre-update addressing to __put_user_asm_goto()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 4 Sep 2020 10:46:47 +0000 (10:46 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 15 Sep 2020 12:13:31 +0000 (22:13 +1000)
Enable pre-update addressing mode in __put_user_asm_goto()

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/346f65d677adb11865f7762c25a1ca3c64404ba5.1599216023.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/uaccess.h

index 7c2427f..a5cfe86 100644 (file)
@@ -254,7 +254,7 @@ do {                                                                \
                "1:     " op "%U1%X1 %0,%1      # put_user\n"   \
                EX_TABLE(1b, %l2)                               \
                :                                               \
-               : "r" (x), "m" (*addr)                          \
+               : "r" (x), "m<>" (*addr)                                \
                :                                               \
                : label)