From patchwork Thu Sep 10 10:11:20 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Gollub X-Patchwork-Id: 46580 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 n8AA9TXZ027443 for ; Thu, 10 Sep 2009 10:09:29 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753335AbZIJKJX (ORCPT ); Thu, 10 Sep 2009 06:09:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755248AbZIJKJX (ORCPT ); Thu, 10 Sep 2009 06:09:23 -0400 Received: from d112a2.x-mailer.de ([212.162.53.4]:53830 "EHLO d112a2.x-mailer.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753042AbZIJKJX convert rfc822-to-8bit (ORCPT ); Thu, 10 Sep 2009 06:09:23 -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 1Mlgaj-0006me-Ku; Thu, 10 Sep 2009 12:09:25 +0200 From: Daniel Gollub Organization: B1 Systems GmbH To: Avi Kivity Subject: [PATCH][RESEND] qemu-kvm: fix warnings with USE_KVM_DEVICE_ASSIGNMENT disabled Date: Thu, 10 Sep 2009 12:11:20 +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: <200909101211.21198.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 Fix warnings with USE_KVM_DEVICE_ASSIGNMENT disabled, spotted by buildbot: http://buildbot.b1-systems.de/qemu-kvm/builders/default_x86_64_debian_5_0/builds/55/steps/compile/logs/warnings Signed-off-by: Daniel Gollub --- qemu-kvm.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/qemu-kvm.c b/qemu-kvm.c index e2f3b91..78eeb6f 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -66,8 +66,10 @@ static CPUState *kvm_debug_cpu_requested; static uint64_t phys_ram_size; +#ifdef USE_KVM_DEVICE_ASSIGNMENT /* The list of ioperm_data */ static LIST_HEAD(, ioperm_data) ioperm_head; +#endif //#define DEBUG_MEMREG #ifdef DEBUG_MEMREG @@ -1829,7 +1831,9 @@ static void *ap_main_loop(void *_env) { CPUState *env = _env; sigset_t signals; +#ifdef USE_KVM_DEVICE_ASSIGNMENT struct ioperm_data *data = NULL; +#endif current_env = env; env->thread_id = kvm_get_thread_id();