From: Brian Gerst Date: Mon, 20 Jul 2020 20:49:19 +0000 (-0700) Subject: x86/percpu: Remove "e" constraint from XADD X-Git-Tag: howlett/maple_spf/20210104~1399^2~6 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e4d16defbbde028aeab2026995f0ced4240df6d6;p=users%2Fjedix%2Flinux-maple.git x86/percpu: Remove "e" constraint from XADD The "e" constraint represents a constant, but the XADD instruction doesn't accept immediate operands. Signed-off-by: Brian Gerst Signed-off-by: Nick Desaulniers Signed-off-by: Thomas Gleixner Tested-by: Nick Desaulniers Tested-by: Sedat Dilek Reviewed-by: Nick Desaulniers Acked-by: Linus Torvalds Acked-by: Peter Zijlstra (Intel) Acked-by: Dennis Zhou Link: https://lkml.kernel.org/r/20200720204925.3654302-6-ndesaulniers@google.com --- diff --git a/arch/x86/include/asm/percpu.h b/arch/x86/include/asm/percpu.h index 2a24f3c795ebb..9bb5440d98d3a 100644 --- a/arch/x86/include/asm/percpu.h +++ b/arch/x86/include/asm/percpu.h @@ -220,7 +220,7 @@ do { \ break; \ case 8: \ asm qual ("xaddq %0, "__percpu_arg(1) \ - : "+re" (paro_ret__), "+m" (var) \ + : "+r" (paro_ret__), "+m" (var) \ : : "memory"); \ break; \ default: __bad_percpu_size(); \