summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2010-07-29 15:11:34 +0300
committerAvi Kivity <avi@redhat.com>2010-10-24 10:50:06 +0200
commitea9ef04e19c7c441b1ce9fe28ff6d9522c848baa (patch)
treeda3d1a2479aa4d3102036d57a19033f3695316bd /arch
parent62bd430e6d41ac84ff2fb719f5783c3692718f47 (diff)
downloadop-kernel-dev-ea9ef04e19c7c441b1ce9fe28ff6d9522c848baa.zip
op-kernel-dev-ea9ef04e19c7c441b1ce9fe28ff6d9522c848baa.tar.gz
KVM: x86 emulator: drop parentheses in repreat macros
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kvm/emulate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
index b0f45bc..3bfba94 100644
--- a/arch/x86/kvm/emulate.c
+++ b/arch/x86/kvm/emulate.c
@@ -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)
OpenPOWER on IntegriCloud