diff --git a/lib/ioat/ioat.c b/lib/ioat/ioat.c index ef7c215a6..5cdc17bff 100644 --- a/lib/ioat/ioat.c +++ b/lib/ioat/ioat.c @@ -465,7 +465,7 @@ ioat_channel_start(struct spdk_ioat_chan *ioat) /* Caller must hold g_ioat_driver.lock */ static struct spdk_ioat_chan * -ioat_attach(void *device) +ioat_attach(struct spdk_pci_device *device) { struct spdk_ioat_chan *ioat; uint32_t cmd_reg; diff --git a/lib/ioat/ioat_internal.h b/lib/ioat/ioat_internal.h index 81cffff52..18e9ef931 100644 --- a/lib/ioat/ioat_internal.h +++ b/lib/ioat/ioat_internal.h @@ -52,7 +52,7 @@ struct ioat_descriptor { /* One of these per allocated PCI device. */ struct spdk_ioat_chan { /* Opaque handle to upper layer */ - void *device; + struct spdk_pci_device *device; uint64_t max_xfer_size; volatile struct spdk_ioat_registers *regs;