diff mbox

[09/18] kvm: qemu: device-assignment: add assigned_dev_update_irq() prototype

Message ID 1232027262-21487-9-git-send-email-markmc@redhat.com (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Mark McLoughlin Jan. 15, 2009, 1:47 p.m. UTC
Fixes:

  qemu/hw/device-assignment.c:494: warning: no previous prototype for ‘assigned_dev_update_irq’

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
---
 qemu/hw/device-assignment.h |    1 +
 qemu/hw/pci.c               |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
diff mbox

Patch

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;