diff options
author | Michael S. Tsirkin | 2016-07-21 17:42:42 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2016-07-21 19:43:43 +0200 |
commit | 09cd058a2cf77bb7a3b10ff93c1f80ed88bca364 (patch) | |
tree | 733730d18ac5f7f9aa98ec75cf2184a8a213fe36 /hw/i386/intel_iommu.c | |
parent | intel_iommu: Add support for PCI MSI remap (diff) | |
download | qemu-09cd058a2cf77bb7a3b10ff93c1f80ed88bca364.tar.gz qemu-09cd058a2cf77bb7a3b10ff93c1f80ed88bca364.tar.xz qemu-09cd058a2cf77bb7a3b10ff93c1f80ed88bca364.zip |
intel_iommu: get rid of {0} initializers
Correct and portable in theory, but triggers warnings with older gcc
versions when -Wmissing-braces is enabled.
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53119
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/i386/intel_iommu.c')
-rw-r--r-- | hw/i386/intel_iommu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c index 2e57396e6d..ccfcc69347 100644 --- a/hw/i386/intel_iommu.c +++ b/hw/i386/intel_iommu.c @@ -2024,7 +2024,7 @@ static int vtd_irte_get(IntelIOMMUState *iommu, uint16_t index, /* Fetch IRQ information of specific IR index */ static int vtd_remap_irq_get(IntelIOMMUState *iommu, uint16_t index, VTDIrq *irq) { - VTD_IRTE irte = { 0 }; + VTD_IRTE irte = {}; int ret = 0; ret = vtd_irte_get(iommu, index, &irte); @@ -2082,7 +2082,7 @@ static int vtd_interrupt_remap_msi(IntelIOMMUState *iommu, int ret = 0; VTD_IR_MSIAddress addr; uint16_t index; - VTDIrq irq = {0}; + VTDIrq irq = {}; assert(origin && translated); @@ -2176,7 +2176,7 @@ static MemTxResult vtd_mem_ir_write(void *opaque, hwaddr addr, MemTxAttrs attrs) { int ret = 0; - MSIMessage from = {0}, to = {0}; + MSIMessage from = {}, to = {}; from.address = (uint64_t) addr + VTD_INTERRUPT_ADDR_FIRST; from.data = (uint32_t) value; |