mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
hw/dma: Use dma_addr_t type definition when relevant
Update the obvious places where dma_addr_t should be used (instead of uint64_t, hwaddr, size_t, int32_t types). This allows to have &dma_addr_t type portable on 32/64-bit hosts. Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20220111184309.28637-11-f4bug@amsat.org>
This commit is contained in:
parent
026644cf5f
commit
bfa30f3903
5 changed files with 21 additions and 17 deletions
|
@ -20,7 +20,7 @@
|
|||
void *rdma_pci_dma_map(PCIDevice *dev, dma_addr_t addr, dma_addr_t len)
|
||||
{
|
||||
void *p;
|
||||
hwaddr pci_len = len;
|
||||
dma_addr_t pci_len = len;
|
||||
|
||||
if (!addr) {
|
||||
rdma_error_report("addr is NULL");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue