iommu/vt-d: Fix compile error with CONFIG_PCI_ATS not set
Subsystems (2)
Lu Baolu
maintainerPATCH 1/1 iommu/vt-d: Fix compile error with CONFIG_PCI_ATS not set
Fix the compile error below (CONFIG_PCI_ATS not set):
drivers/iommu/intel/dmar.c: In function ‘vf_inherit_msi_domain’:drivers/iommu/intel/dmar.c:338:59: error: ‘struct pci_dev’ has no member named ‘physfn’; did you mean ‘is_physfn’?
338 | dev_set_msi_domain(&pdev->dev, dev_get_msi_domain(&pdev->physfn->dev));
| ^~~~~~
| is_physfnLink https://lore.kernel.org/linux-iommu/CAMuHMdXA7wfJovmfSH2nbAhN0cPyCiFHodTvg4a8Hm9rx5Dj-w@mail.gmail.com/ open here
Fixes ff828729be446 ("iommu/vt-d: Cure VF irqdomain hickup")
Cc Thomas Gleixner <[email protected]>
Reported-by Geert Uytterhoeven <[email protected]>
Signed-off-by Lu Baolu <[email protected]>
--- drivers/iommu/intel/dmar.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/iommu/intel/dmar.c +3 -1
@@ -335,7 +335,9 @@ static void dmar_pci_bus_del_dev(struct dmar_pci_notify_info *info)static inline void vf_inherit_msi_domain (struct pci_dev *pdev) { -dev_set_msi_domain (&pdev->dev,dev_get_msi_domain (&pdev->physfn->dev)); +struct pci_dev *physfn =pci_physfn (pdev); + +dev_set_msi_domain (&pdev->dev,dev_get_msi_domain (&physfn->dev)); } static int dmar_pci_bus_notifier(struct notifier_block *nb,
Signature · 6 lines
2.25.1 _______________________________________________ iommu mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/iommu
Quoted 7 lines · Lu Baolu
Fix the compile error below (
CONFIG_PCI_ATSnot set):
drivers/iommu/intel/dmar.c: In function ‘vf_inherit_msi_domain’:drivers/iommu/intel/dmar.c:338:59: error: ‘struct pci_dev’ has no member named ‘physfn’; did you mean ‘is_physfn’?338 | dev_set_msi_domain(&pdev->dev, dev_get_msi_domain(&pdev->physfn->dev)); | ^~~~~~ | is_physfn
Applied to arm64 (for-next/iommu/fixes), thanks!
[1/1] iommu/vt-d: Fix compile error with CONFIG_PCI_ATS not set
https://git.kernel.org/arm64/c/3645a34f5b96
Cheers,
Signature · 5 lines
Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev