]> xenbits.xensource.com Git - xen.git/commitdiff
x86: fix OLDINSTR_2()
authorJan Beulich <JBeulich@suse.com>
Tue, 13 Mar 2018 14:14:51 +0000 (08:14 -0600)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 29 Mar 2018 14:12:21 +0000 (15:12 +0100)
Its as_max() invocation was wrongly parenthesized.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/include/asm-x86/alternative.h

index 480336860a201247a7539e7ddc005fd173c138d5..619472efcb73cb8e1f361f12deac76631e5e15d7 100644 (file)
@@ -54,8 +54,8 @@ extern void alternative_instructions(void);
 
 #define OLDINSTR_2(oldinstr, n1, n2)                             \
     OLDINSTR(oldinstr,                                           \
-             as_max((alt_repl_len(n1),                           \
-                     alt_repl_len(n2)) "-" alt_orig_len))
+             as_max(alt_repl_len(n1),                            \
+                    alt_repl_len(n2)) "-" alt_orig_len)
 
 #define ALTINSTR_ENTRY(feature, num)                                    \
         " .long .LXEN%=_orig_s - .\n"             /* label           */ \