x86: Apply the asm_volatile_goto() compiler quirk
authorIngo Molnar <mingo@kernel.org>
Thu, 10 Oct 2013 08:16:30 +0000 (10:16 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 11 Oct 2013 05:41:43 +0000 (07:41 +0200)
Apply the asm_volatile_goto() compiler quirk to the new rmwcc.h
file as well, introduced in:

   c2daa3bed53a sched, x86: Provide a per-cpu preempt_count implementation

Reported-and-tested-by: Fengguang Wu <fengguang.wu@intel.com>
Reported-by: Oleg Nesterov <oleg@redhat.com>
Reported-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Suggested-by: Jakub Jelinek <jakub@redhat.com>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/rmwcc.h

index 735f1849795fa2751bbe569e7d5de075734f520b..1ff990f1de8e3f58f21fda00bc1a646b96eaba2b 100644 (file)
@@ -5,7 +5,7 @@
 
 #define __GEN_RMWcc(fullop, var, cc, ...)                              \
 do {                                                                   \
-       asm volatile goto (fullop "; j" cc " %l[cc_label]"              \
+       asm_volatile_goto (fullop "; j" cc " %l[cc_label]"              \
                        : : "m" (var), ## __VA_ARGS__                   \
                        : "memory" : cc_label);                         \
        return 0;                                                       \