From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: [PATCH 1/8] test: move ARRAY_SIZE() to libcflat.h Date: Wed, 28 Jul 2010 13:18:20 +0300 Message-ID: <1280312307-16686-2-git-send-email-avi@redhat.com> References: <1280312307-16686-1-git-send-email-avi@redhat.com> To: Joerg Roedel , Marcelo Tosatti , kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:18751 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754603Ab0G1KS3 (ORCPT ); Wed, 28 Jul 2010 06:18:29 -0400 In-Reply-To: <1280312307-16686-1-git-send-email-avi@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Signed-off-by: Avi Kivity --- kvm/test/lib/libcflat.h | 2 ++ kvm/test/x86/vmexit.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kvm/test/lib/libcflat.h b/kvm/test/lib/libcflat.h index 1da4013..7274fed 100644 --- a/kvm/test/lib/libcflat.h +++ b/kvm/test/lib/libcflat.h @@ -39,4 +39,6 @@ extern int vsnprintf(char *buf, int size, const char *fmt, va_list va); extern void puts(const char *s); +#define ARRAY_SIZE(_a) (sizeof(_a)/sizeof((_a)[0])) + #endif diff --git a/kvm/test/x86/vmexit.c b/kvm/test/x86/vmexit.c index 731316b..707d5c6 100644 --- a/kvm/test/x86/vmexit.c +++ b/kvm/test/x86/vmexit.c @@ -167,8 +167,6 @@ static void do_test(struct test *test) printf("%s %d\n", test->name, (int)((t2 - t1) / iterations)); } -#define ARRAY_SIZE(_x) (sizeof(_x) / sizeof((_x)[0])) - static void enable_nx(void *junk) { wrmsr(MSR_EFER, rdmsr(MSR_EFER) | EFER_NX_MASK); -- 1.7.1