aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2021-04-12 13:32:21 +0000
committerMark Johnston <markj@FreeBSD.org>2021-04-12 13:32:21 +0000
commit3f322b22e02d6aae147e9948ab50ca1bee9a9dd4 (patch)
tree576fb8f8c4bc802e8617fc259c2067cf1f1353c2
parent56cbd386fbaefc009541870ee013b2ff8d096bfc (diff)
downloadsrc-3f322b22e02d6aae147e9948ab50ca1bee9a9dd4.tar.gz
src-3f322b22e02d6aae147e9948ab50ca1bee9a9dd4.zip
linuxkpi: Fix pcie_set_readrq()
We were passing a LinuxKPI struct device * to a pci(4) function that expects a device_t. Reviewed by: manu, hselasky, bz MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D29675
-rw-r--r--sys/compat/linuxkpi/common/include/linux/pci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h
index 7962da994854..c718c674ea1f 100644
--- a/sys/compat/linuxkpi/common/include/linux/pci.h
+++ b/sys/compat/linuxkpi/common/include/linux/pci.h
@@ -709,7 +709,7 @@ lkpi_pci_restore_state(struct pci_dev *pdev)
/* XXX This should not be necessary. */
#define pcix_set_mmrbc(d, v) 0
#define pcix_get_max_mmrbc(d) 0
-#define pcie_set_readrq(d, v) pci_set_max_read_req(&(d)->dev, (v))
+#define pcie_set_readrq(d, v) pci_set_max_read_req((d)->dev.bsddev, (v))
#define PCI_DMA_BIDIRECTIONAL 0
#define PCI_DMA_TODEVICE 1