From patchwork Thu Jan 15 13:47:33 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mark McLoughlin X-Patchwork-Id: 2482 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 n0FDhmO9020391 for ; Thu, 15 Jan 2009 05:43:48 -0800 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761423AbZAONru (ORCPT ); Thu, 15 Jan 2009 08:47:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1761560AbZAONrt (ORCPT ); Thu, 15 Jan 2009 08:47:49 -0500 Received: from mail20.svc.cra.dublin.eircom.net ([159.134.118.221]:45774 "HELO mail20.svc.cra.dublin.eircom.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1757662AbZAONrp (ORCPT ); Thu, 15 Jan 2009 08:47:45 -0500 Received: (qmail 67910 messnum 130800 invoked from network[83.71.77.218/83-71-77-218-dynamic.b-ras1.srl.dublin.eircom.net]); 15 Jan 2009 13:47:44 -0000 Received: from 83-71-77-218-dynamic.b-ras1.srl.dublin.eircom.net (HELO blaa.localdomain) (83.71.77.218) by mail20.svc.cra.dublin.eircom.net (qp 67910) with SMTP; 15 Jan 2009 13:47:44 -0000 Received: by blaa.localdomain (Postfix, from userid 500) id C970E2E45C4; Thu, 15 Jan 2009 13:47:42 +0000 (GMT) From: Mark McLoughlin To: avi@redhat.com Cc: kvm@vger.kernel.org, Mark McLoughlin Subject: [PATCH 09/18] kvm: qemu: device-assignment: add assigned_dev_update_irq() prototype Date: Thu, 15 Jan 2009 13:47:33 +0000 Message-Id: <1232027262-21487-9-git-send-email-markmc@redhat.com> X-Mailer: git-send-email 1.6.0.6 In-Reply-To: <1232027262-21487-8-git-send-email-markmc@redhat.com> References: <1232027262-21487-1-git-send-email-markmc@redhat.com> <1232027262-21487-2-git-send-email-markmc@redhat.com> <1232027262-21487-3-git-send-email-markmc@redhat.com> <1232027262-21487-4-git-send-email-markmc@redhat.com> <1232027262-21487-5-git-send-email-markmc@redhat.com> <1232027262-21487-6-git-send-email-markmc@redhat.com> <1232027262-21487-7-git-send-email-markmc@redhat.com> <1232027262-21487-8-git-send-email-markmc@redhat.com> MIME-Version: 1.0 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Fixes: qemu/hw/device-assignment.c:494: warning: no previous prototype for ‘assigned_dev_update_irq’ Signed-off-by: Mark McLoughlin --- qemu/hw/device-assignment.h | 1 + qemu/hw/pci.c | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/qemu/hw/device-assignment.h b/qemu/hw/device-assignment.h index a565948..8b3b105 100644 --- a/qemu/hw/device-assignment.h +++ b/qemu/hw/device-assignment.h @@ -99,6 +99,7 @@ PCIDevice *init_assigned_device(AssignedDevInfo *adev, PCIBus *bus); AssignedDevInfo *add_assigned_device(const char *arg); void add_assigned_devices(PCIBus *bus, const char **devices, int n_devices); ram_addr_t assigned_dev_load_option_roms(ram_addr_t rom_base_offset); +void assigned_dev_update_irq(PCIDevice *d); #define MAX_DEV_ASSIGN_CMDLINE 8 diff --git a/qemu/hw/pci.c b/qemu/hw/pci.c index ae5dd53..6004904 100644 --- a/qemu/hw/pci.c +++ b/qemu/hw/pci.c @@ -28,6 +28,7 @@ #include "virtio-net.h" #include "pc.h" #include "qemu-kvm.h" +#include "device-assignment.h" //#define DEBUG_PCI @@ -51,7 +52,6 @@ struct PCIBus { static void pci_update_mappings(PCIDevice *d); static void pci_set_irq(void *opaque, int irq_num, int level); -void assigned_dev_update_irq(PCIDevice *d); target_phys_addr_t pci_mem_base; static uint16_t pci_default_sub_vendor_id = PCI_SUBVENDOR_ID_REDHAT_QUMRANET;