From patchwork Fri Sep 26 20:45:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Habkost X-Patchwork-Id: 393972 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 12DBE140188 for ; Sat, 27 Sep 2014 06:53:30 +1000 (EST) Received: from localhost ([::1]:52410 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXcW7-0002lw-FS for incoming@patchwork.ozlabs.org; Fri, 26 Sep 2014 16:53:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXcPq-0000He-Ke for qemu-devel@nongnu.org; Fri, 26 Sep 2014 16:47:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXcPj-0006Dr-Tz for qemu-devel@nongnu.org; Fri, 26 Sep 2014 16:46:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:28975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXcPj-0006Bg-NC for qemu-devel@nongnu.org; Fri, 26 Sep 2014 16:46:51 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s8QKkeYD014359 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 26 Sep 2014 16:46:40 -0400 Received: from localhost (ovpn-113-54.phx2.redhat.com [10.3.113.54]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s8QKkdo1008809; Fri, 26 Sep 2014 16:46:40 -0400 From: Eduardo Habkost To: qemu-devel@nongnu.org Date: Fri, 26 Sep 2014 17:45:27 -0300 Message-Id: <1411764332-23265-13-git-send-email-ehabkost@redhat.com> In-Reply-To: <1411764332-23265-1-git-send-email-ehabkost@redhat.com> References: <1411764332-23265-1-git-send-email-ehabkost@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Michael Mueller , Marcel Apfelbaum , "Michael S. Tsirkin" , Alexander Graf , Christian Borntraeger , "Jason J. Herne" , Paolo Bonzini , =?UTF-8?q?Andreas=20F=C3=A4rber?= Subject: [Qemu-devel] [PATCH v3 12/17] accel: Remove tcg_available() function X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org As the function always return 1, it is not needed anymore. Signed-off-by: Eduardo Habkost Reviewed-by: Paolo Bonzini --- accel.c | 1 - arch_init.c | 5 ----- include/sysemu/arch_init.h | 1 - 3 files changed, 7 deletions(-) diff --git a/accel.c b/accel.c index 2cf47337..0f3fcee 100644 --- a/accel.c +++ b/accel.c @@ -119,7 +119,6 @@ static void tcg_accel_class_init(ObjectClass *oc, void *data) { AccelClass *ac = ACCEL_CLASS(oc); ac->name = "tcg"; - ac->available = tcg_available; ac->init = tcg_init; ac->allowed = &tcg_allowed; } diff --git a/arch_init.c b/arch_init.c index c974f3f..9b3e25d 100644 --- a/arch_init.c +++ b/arch_init.c @@ -1337,11 +1337,6 @@ void cpudef_init(void) #endif } -int tcg_available(void) -{ - return 1; -} - int kvm_available(void) { #ifdef CONFIG_KVM diff --git a/include/sysemu/arch_init.h b/include/sysemu/arch_init.h index 769ec06..54b36c1 100644 --- a/include/sysemu/arch_init.h +++ b/include/sysemu/arch_init.h @@ -33,7 +33,6 @@ void do_smbios_option(QemuOpts *opts); void ram_mig_init(void); void cpudef_init(void); void audio_init(void); -int tcg_available(void); int kvm_available(void); int xen_available(void);