[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [qemu-xen-unstable] eliminate compiler warnings
commit bd5608d7ab3175af27070156871ffcdbe712d8af Author: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> Date: Thu Oct 28 12:27:08 2010 +0100 eliminate compiler warnings No functional change intended. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx> --- hw/pass-through.h | 4 ++-- hw/pt-graphics.c | 4 ++-- hw/xen_console.c | 3 ++- vl.c | 1 + xenstore.c | 7 +++---- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/hw/pass-through.h b/hw/pass-through.h index e59eb52..dd218f7 100644 --- a/hw/pass-through.h +++ b/hw/pass-through.h @@ -414,8 +414,8 @@ int unregister_vga_regions(struct pt_dev *real_device); int setup_vga_pt(struct pt_dev *real_device); PCIBus *intel_pci_bridge_init(PCIBus *bus, int devfn, uint16_t vid, uint16_t did, const char *name, uint16_t revision); -void igd_pci_write(PCIDevice *pci_dev, int config_addr, uint32_t val, int len); -uint32_t igd_pci_read(PCIDevice *pci_dev, int config_addr, int len); +void igd_pci_write(PCIDevice *pci_dev, uint32_t config_addr, uint32_t val, int len); +uint32_t igd_pci_read(PCIDevice *pci_dev, uint32_t config_addr, int len); #endif /* __PASSTHROUGH_H__ */ diff --git a/hw/pt-graphics.c b/hw/pt-graphics.c index 5dfcca2..e3fdf8e 100644 --- a/hw/pt-graphics.c +++ b/hw/pt-graphics.c @@ -36,7 +36,7 @@ void intel_pch_init(PCIBus *bus) pch_map_irq, "intel_bridge_1f"); } -void igd_pci_write(PCIDevice *pci_dev, int config_addr, uint32_t val, int len) +void igd_pci_write(PCIDevice *pci_dev, uint32_t config_addr, uint32_t val, int len) { assert(pci_dev->devfn == 0x00); if ( !igd_passthru ) { @@ -57,7 +57,7 @@ void igd_pci_write(PCIDevice *pci_dev, int config_addr, uint32_t val, int len) } } -uint32_t igd_pci_read(PCIDevice *pci_dev, int config_addr, int len) +uint32_t igd_pci_read(PCIDevice *pci_dev, uint32_t config_addr, int len) { uint32_t val; diff --git a/hw/xen_console.c b/hw/xen_console.c index 545caa7..54bfc6f 100644 --- a/hw/xen_console.c +++ b/hw/xen_console.c @@ -181,7 +181,8 @@ static void xencons_send(struct XenConsole *con) static int con_init(struct XenDevice *xendev) { struct XenConsole *con = container_of(xendev, struct XenConsole, xendev); - char *type, *dom, *output, label[32]; + char *type, *dom, label[32]; + const char *output; /* setup */ dom = xs_get_domain_path(xenstore, con->xendev.dom); diff --git a/vl.c b/vl.c index 1673cd4..a90da8c 100644 --- a/vl.c +++ b/vl.c @@ -41,6 +41,7 @@ #include "audio/audio.h" #include "migration.h" #include "kvm.h" +#include "dma.h" #include "balloon.h" #include "hw/pci.h" diff --git a/xenstore.c b/xenstore.c index 6d24613..7b9c2ae 100644 --- a/xenstore.c +++ b/xenstore.c @@ -1573,10 +1573,9 @@ void xenstore_store_pv_console_info(int i, CharDriverState *chr, const char *devname) { char buf[32]; - if (i == 0) { - snprintf(buf, sizeof(buf), "/console", i); - store_dev_info(devname, domid, chr, buf); - } else { + if (i == 0) + store_dev_info(devname, domid, chr, "/console"); + else { snprintf(buf, sizeof(buf), "/device/console/%d", i); store_dev_info(devname, domid, chr, buf); } -- generated by git-patchbot for /home/xen/git/qemu-xen-unstable.git _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |