qemu: eliminate compiler warnings
PATCH 1/1 qemu: eliminate compiler warnings
No functional change intended.
Signed-off-by Jan Beulich <[email protected]>
hw/pass-through.h +2 -2
@@ -414,8 +414,8 @@ int unregister_vga_regions(struct pt_devint 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__ */
hw/pt-graphics.c +2 -2
@@ -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, i } } -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;
hw/xen_console.c +2 -1
@@ -181,7 +181,8 @@ static void xencons_send(struct XenConsostatic 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);
vl.c +1 -0
@@ -41,6 +41,7 @@#include "audio/audio.h" #include "migration.h" #include "kvm.h" +#include "dma.h" #include "balloon.h" #include "hw/pci.h"
xenstore.c +3 -4
@@ -1573,10 +1573,9 @@ void xenstore_store_pv_console_info(int 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); }
No functional change intended.
Signed-off-by Jan Beulich <[email protected]>
hw/pass-through.h +2 -2
@@ -414,8 +414,8 @@ int unregister_vga_regions(struct pt_devint 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__ */
hw/pt-graphics.c +2 -2
@@ -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, i } } -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;
hw/xen_console.c +2 -1
@@ -181,7 +181,8 @@ static void xencons_send(struct XenConsostatic 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);
vl.c +1 -0
@@ -41,6 +41,7 @@#include "audio/audio.h" #include "migration.h" #include "kvm.h" +#include "dma.h" #include "balloon.h" #include "hw/pci.h"
xenstore.c +3 -4
@@ -1573,10 +1573,9 @@ void xenstore_store_pv_console_info(int 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); }
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Jan Beulich writes ("[Xen-devel] [PATCH] qemu: eliminate compiler warnings"):
Quoted 1 line
No functional change intended.
Great, thanks for this and your dependency-handling patch, which I've applied.
Ian.