diff options
| author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2021-12-31 11:19:08 +0100 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2022-01-18 12:56:07 +0100 |
| commit | ce0a7982855afd873600a4180161adbfaef24cc1 (patch) | |
| tree | e8975355b375001665f2e5df1334c3f5fcedfbab /hw/rdma/rdma_utils.h | |
| parent | fd5e451edbebecaa65d2e6fef09b9afd7eefc951 (diff) | |
| download | focaccia-qemu-ce0a7982855afd873600a4180161adbfaef24cc1.tar.gz focaccia-qemu-ce0a7982855afd873600a4180161adbfaef24cc1.zip | |
hw/rdma/rdma_utils: Rename rdma_pci_dma_map 'len' argument
Various APIs use 'pval' naming for 'pointer to val'. rdma_pci_dma_map() uses 'plen' for 'PCI length', but since 'PCI' is already explicit in the function name, simplify and rename the argument 'len'. No logical change. Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: David Hildenbrand <david@redhat.com> Reviewed-by: Yuval Shaia <yuval.shaia.ml@gmail.com> Tested-by: Yuval Shaia <yuval.shaia.ml@gmail.com> Message-Id: <20220111184309.28637-7-f4bug@amsat.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'hw/rdma/rdma_utils.h')
| -rw-r--r-- | hw/rdma/rdma_utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/rdma/rdma_utils.h b/hw/rdma/rdma_utils.h index 9fd0efd940..0c6414e7e0 100644 --- a/hw/rdma/rdma_utils.h +++ b/hw/rdma/rdma_utils.h @@ -38,7 +38,7 @@ typedef struct RdmaProtectedGSList { GSList *list; } RdmaProtectedGSList; -void *rdma_pci_dma_map(PCIDevice *dev, dma_addr_t addr, dma_addr_t plen); +void *rdma_pci_dma_map(PCIDevice *dev, dma_addr_t addr, dma_addr_t len); void rdma_pci_dma_unmap(PCIDevice *dev, void *buffer, dma_addr_t len); void rdma_protected_gqueue_init(RdmaProtectedGQueue *list); void rdma_protected_gqueue_destroy(RdmaProtectedGQueue *list); |