From patchwork Mon Jul 20 23:10:16 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Glauber Costa X-Patchwork-Id: 36427 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n6KNAaZF021918 for ; Mon, 20 Jul 2009 23:10:36 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754321AbZGTXKd (ORCPT ); Mon, 20 Jul 2009 19:10:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754332AbZGTXKd (ORCPT ); Mon, 20 Jul 2009 19:10:33 -0400 Received: from mx2.redhat.com ([66.187.237.31]:53386 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754316AbZGTXKU (ORCPT ); Mon, 20 Jul 2009 19:10:20 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n6KNALWi029419 for ; Mon, 20 Jul 2009 19:10:21 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n6KNAKh2002986; Mon, 20 Jul 2009 19:10:20 -0400 Received: from localhost.localdomain (virtlab1.virt.bos.redhat.com [10.16.72.21]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n6KNAGkm028980; Mon, 20 Jul 2009 19:10:19 -0400 From: Glauber Costa To: kvm@vger.kernel.org Cc: avi@redhat.com Subject: [PATCH 9/9] remove kvm_abi variable Date: Mon, 20 Jul 2009 19:10:16 -0400 Message-Id: <1248131416-11272-10-git-send-email-glommer@redhat.com> In-Reply-To: <1248131416-11272-9-git-send-email-glommer@redhat.com> References: <1248131416-11272-1-git-send-email-glommer@redhat.com> <1248131416-11272-2-git-send-email-glommer@redhat.com> <1248131416-11272-3-git-send-email-glommer@redhat.com> <1248131416-11272-4-git-send-email-glommer@redhat.com> <1248131416-11272-5-git-send-email-glommer@redhat.com> <1248131416-11272-6-git-send-email-glommer@redhat.com> <1248131416-11272-7-git-send-email-glommer@redhat.com> <1248131416-11272-8-git-send-email-glommer@redhat.com> <1248131416-11272-9-git-send-email-glommer@redhat.com> X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org We're not using this for anything Signed-off-by: Glauber Costa --- qemu-kvm.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/qemu-kvm.c b/qemu-kvm.c index c89146d..b9eed8e 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -43,7 +43,6 @@ int kvm_pit = 1; int kvm_pit_reinject = 1; int kvm_nested = 0; - static KVMState *kvm_state; kvm_context_t kvm_context; @@ -84,7 +83,6 @@ static LIST_HEAD(, ioperm_data) ioperm_head; #define ALIGN(x, y) (((x)+(y)-1) & ~((y)-1)) -int kvm_abi = EXPECTED_KVM_API_VERSION; int kvm_page_size; #ifdef KVM_CAP_SET_GUEST_DEBUG @@ -436,7 +434,6 @@ int kvm_init(int smp_cpus) fprintf(stderr, "kvm userspace version too old\n"); goto out_close; } - kvm_abi = r; kvm_page_size = getpagesize(); kvm_state = qemu_mallocz(sizeof(*kvm_state)); kvm_context = &kvm_state->kvm_context;