Skip to content

Commit 5a59f2f

Browse files
Shixiong Ouawilliam
authored andcommitted
vfio/pds: Add missing PCI_IOV depends
If PCI_ATS isn't set, then pdev->physfn is not defined. it causes a compilation issue: ../drivers/vfio/pci/pds/vfio_dev.c:165:30: error: ‘struct pci_dev’ has no member named ‘physfn’; did you mean ‘is_physfn’? 165 | __func__, pci_dev_id(pdev->physfn), pci_id, vf_id, | ^~~~~~ So adding PCI_IOV depends to select PCI_ATS. Signed-off-by: Shixiong Ou <[email protected]> Reviewed-by: Brett Creeley <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Link: https://lore.kernel.org/r/[email protected] Fixes: 63f77a7 ("vfio/pds: register with the pds_core PF") Signed-off-by: Alex Williamson <[email protected]>
1 parent ce9ecca commit 5a59f2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/vfio/pci/pds/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
config PDS_VFIO_PCI
55
tristate "VFIO support for PDS PCI devices"
6-
depends on PDS_CORE
6+
depends on PDS_CORE && PCI_IOV
77
select VFIO_PCI_CORE
88
help
99
This provides generic PCI support for PDS devices using the VFIO

0 commit comments

Comments
 (0)