Skip to content

Commit

Permalink
KVM: x86 emulator: drop parentheses in repreat macros
Browse files Browse the repository at this point in the history
The parenthese make is impossible to use the macros with initializers that
require braces.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
  • Loading branch information
Avi Kivity committed Oct 24, 2010
1 parent 62bd430 commit ea9ef04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/x86/kvm/emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@
#define Src2One (3<<29)
#define Src2Mask (7<<29)

#define X2(x) (x), (x)
#define X3(x) X2(x), (x)
#define X2(x) x, x
#define X3(x) X2(x), x
#define X4(x) X2(x), X2(x)
#define X5(x) X4(x), (x)
#define X5(x) X4(x), x
#define X6(x) X4(x), X2(x)
#define X7(x) X4(x), X3(x)
#define X8(x) X4(x), X4(x)
Expand Down

0 comments on commit ea9ef04

Please sign in to comment.