aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@redhat.com>2021-12-17 23:47:30 +0100
committerPhilippe Mathieu-Daudé <philmd@redhat.com>2021-12-31 01:05:27 +0100
commit6bebb270731758fae3114b7d24c2b12b7c325cc5 (patch)
treebe7acc1131d0f16016d6974b55e9e3bbacb3a2ad /include
parent398f9a84ac7132e38caf7b066273734b3bf619ff (diff)
downloadqemu-6bebb270731758fae3114b7d24c2b12b7c325cc5.zip
qemu-6bebb270731758fae3114b7d24c2b12b7c325cc5.tar.gz
qemu-6bebb270731758fae3114b7d24c2b12b7c325cc5.tar.bz2
pci: Let st*_pci_dma() propagate MemTxResult
st*_dma() returns a MemTxResult type. Do not discard it, return it to the caller. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20211223115554.3155328-23-philmd@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/pci/pci.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h
index 7a46c1f..c90cecc 100644
--- a/include/hw/pci/pci.h
+++ b/include/hw/pci/pci.h
@@ -859,12 +859,12 @@ static inline MemTxResult pci_dma_write(PCIDevice *dev, dma_addr_t addr,
ld##_l##_dma(pci_get_address_space(dev), addr, &val, attrs); \
return val; \
} \
- static inline void st##_s##_pci_dma(PCIDevice *dev, \
- dma_addr_t addr, \
- uint##_bits##_t val, \
- MemTxAttrs attrs) \
+ static inline MemTxResult st##_s##_pci_dma(PCIDevice *dev, \
+ dma_addr_t addr, \
+ uint##_bits##_t val, \
+ MemTxAttrs attrs) \
{ \
- st##_s##_dma(pci_get_address_space(dev), addr, val, attrs); \
+ return st##_s##_dma(pci_get_address_space(dev), addr, val, attrs); \
}
PCI_DMA_DEFINE_LDST(ub, b, 8);