From patchwork Thu Sep 10 12:56:46 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Gollub X-Patchwork-Id: 46607 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 n8ACsvc6014867 for ; Thu, 10 Sep 2009 12:54:57 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752856AbZIJMyt (ORCPT ); Thu, 10 Sep 2009 08:54:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752865AbZIJMys (ORCPT ); Thu, 10 Sep 2009 08:54:48 -0400 Received: from d112a2.x-mailer.de ([212.162.53.4]:36553 "EHLO d112a2.x-mailer.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752273AbZIJMys convert rfc822-to-8bit (ORCPT ); Thu, 10 Sep 2009 08:54:48 -0400 Received: from [83.171.174.209] (helo=marvin.localnet) by d112.x-mailer.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1MljAp-0001Js-Er; Thu, 10 Sep 2009 14:54:51 +0200 From: Daniel Gollub Organization: B1 Systems GmbH To: Avi Kivity Subject: [PATCH] fix missing prototype warning with USE_KVM_DEVICE_ASSIGNMENT disabled Date: Thu, 10 Sep 2009 14:56:46 +0200 User-Agent: KMail/1.12.1 (Linux/2.6.27.29-0.1-default; KDE/4.3.0; x86_64; ; ) Cc: kvm@vger.kernel.org MIME-Version: 1.0 Message-Id: <200909101456.46826.gollub@b1-systems.de> X-Info: valid message X-Info: original Date Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Fixes warning about missing kvm_arch_do_ioperm prototype with USE_KVM_DEVICE_ASSIGNMENT disabled. /var/lib/buildbot/qemu-kvm/default_x86_64_debian_5_0/build/qemu-kvm-x86.c:1635: warning: no previous prototype for 'kvm_arch_do_ioperm' Patch only build-tested with i386 and x86_64 - not ia64! Spotted by buildbot: http://buildbot.b1-systems.de/qemu-kvm/builders/default_i386_debian_5_0/builds/59/steps/compile/logs/warnings http://buildbot.b1-systems.de/qemu-kvm/builders/default_x86_64_debian_5_0/builds/57/steps/compile/logs/warnings Signed-off-by: Daniel Gollub --- qemu-kvm-ia64.c | 2 ++ qemu-kvm-x86.c | 2 ++ 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/qemu-kvm-ia64.c b/qemu-kvm-ia64.c index 062fbd4..8485452 100644 --- a/qemu-kvm-ia64.c +++ b/qemu-kvm-ia64.c @@ -136,11 +136,13 @@ void kvm_arch_cpu_reset(CPUState *env) } } +#ifdef USE_KVM_DEVICE_ASSIGNMENT void kvm_arch_do_ioperm(void *_data) { struct ioperm_data *data = _data; ioperm(data->start_port, data->num, data->turn_on); } +#endif void kvm_arch_process_irqchip_events(CPUState *env) { diff --git a/qemu-kvm-x86.c b/qemu-kvm-x86.c index f80d82b..92fff7c 100644 --- a/qemu-kvm-x86.c +++ b/qemu-kvm-x86.c @@ -1632,11 +1632,13 @@ void kvm_arch_update_guest_debug(CPUState *env, struct kvm_guest_debug *dbg) } #endif +#ifdef USE_KVM_DEVICE_ASSIGNMENT void kvm_arch_do_ioperm(void *_data) { struct ioperm_data *data = _data; ioperm(data->start_port, data->num, data->turn_on); } +#endif /* * Setup x86 specific IRQ routing