From patchwork Sat Jul 4 09:00:08 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 34046 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 n6490n1L007921 for ; Sat, 4 Jul 2009 09:00:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753292AbZGDJAn (ORCPT ); Sat, 4 Jul 2009 05:00:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753280AbZGDJAn (ORCPT ); Sat, 4 Jul 2009 05:00:43 -0400 Received: from fmmailgate03.web.de ([217.72.192.234]:34528 "EHLO fmmailgate03.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751935AbZGDJAm (ORCPT ); Sat, 4 Jul 2009 05:00:42 -0400 Received: from smtp07.web.de (fmsmtp07.dlan.cinetic.de [172.20.5.215]) by fmmailgate03.web.de (Postfix) with ESMTP id 2E987102BE0B0; Sat, 4 Jul 2009 11:00:15 +0200 (CEST) Received: from [92.74.61.159] (helo=[192.168.1.10]) by smtp07.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #277) id 1MN16U-0008OJ-00; Sat, 04 Jul 2009 11:00:15 +0200 Message-ID: <4A4F1A18.50900@web.de> Date: Sat, 04 Jul 2009 11:00:08 +0200 From: Jan Kiszka User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Avi Kivity CC: kvm-devel Subject: [PATCH] qemu-kvm: Fix warning with DEVICE_ASSIGNMENT disabled X-Enigmail-Version: 0.95.7 X-Sender: jan.kiszka@web.de X-Provags-ID: V01U2FsdGVkX19Ijo4EwX0lF5ugYosLMhYX3Ue5jufiGMSr1ocp nn8gYvCXHBoJT+inMN+4XdoqFQWTPKLtWWCdZzv4JTE5b/u7aS EVMLcQwVE= Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Signed-off-by: Jan Kiszka --- hw/pci-hotplug.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/pci-hotplug.c b/hw/pci-hotplug.c index 66fa377..1180758 100644 --- a/hw/pci-hotplug.c +++ b/hw/pci-hotplug.c @@ -256,7 +256,9 @@ void pci_device_hot_remove_success(int pcibus, int slot) { PCIDevice *d = pci_find_device(pcibus, slot, 0); int class_code; +#ifdef USE_KVM_DEVICE_ASSIGNMENT AssignedDevInfo *adev; +#endif if (!d) { monitor_printf(cur_mon, "invalid slot %d\n", slot);