aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorVasant Hegde <vasant.hegde@amd.com>2022-07-06 17:07:51 +0530
committerJoerg Roedel <jroedel@suse.de>2022-07-07 09:37:32 +0200
commitd02674d71c5a625e5b2e4323edbf05ebedaf4273 (patch)
tree576e59050b2d1a31eeafdd4fded978199d8efac7 /tools/perf/scripts/python
parentiommu/amd: Handle return of iommu_device_sysfs_add (diff)
downloadlinux-d02674d71c5a625e5b2e4323edbf05ebedaf4273.tar.gz
linux-d02674d71c5a625e5b2e4323edbf05ebedaf4273.zip
iommu/amd: Update struct iommu_dev_data definition
struct iommu_dev_data contains member "pdev" to point to pci_dev. This is valid for only PCI devices and for other devices this will be NULL. This causes unnecessary "pdev != NULL" check at various places. Replace "struct pci_dev" member with "struct device" and use to_pci_dev() to get pci device reference as needed. Also adjust setup_aliases() and clone_aliases() function. No functional change intended. Co-developed-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com> Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com> Signed-off-by: Vasant Hegde <vasant.hegde@amd.com> Link: https://lore.kernel.org/r/20220706113825.25582-2-vasant.hegde@amd.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions