summaryrefslogtreecommitdiff
path: root/drivers/cdx/controller/cdx_controller.c
diff options
context:
space:
mode:
authorShixiong Ou <oushixiong@kylinos.cn>2023-09-14 05:13:32 +0300
committerAlex Williamson <alex.williamson@redhat.com>2023-09-18 22:36:53 +0300
commit27004f89b0a2479eceb77885337c2a7b0fdafbc4 (patch)
tree343de3a8f013024b578508bcdd2728038e9097a2 /drivers/cdx/controller/cdx_controller.c
parent5a59f2ff30ae27bb5c3c1aa5d9e11d4d9fc003a5 (diff)
downloadlinux-27004f89b0a2479eceb77885337c2a7b0fdafbc4.tar.xz
vfio/pds: Use proper PF device access helper
The pci_physfn() helper exists to support cases where the physfn field may not be compiled into the pci_dev structure. We've declared this driver dependent on PCI_IOV to avoid this problem, but regardless we should follow the precedent not to access this field directly. Signed-off-by: Shixiong Ou <oushixiong@kylinos.cn> Reviewed-by: Brett Creeley <brett.creeley@amd.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Link: https://lore.kernel.org/r/20230914021332.1929155-1-oushixiong@kylinos.cn Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/cdx/controller/cdx_controller.c')
0 files changed, 0 insertions, 0 deletions