]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Take CONFIG_PCI_ATS into account
authorThomas Gleixner <tglx@linutronix.de>
Mon, 16 Nov 2020 12:52:47 +0000 (13:52 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 16 Nov 2020 12:57:46 +0000 (13:57 +0100)
commit39e5dbed62cb7f159244fa3a7ecc7fda4e238bad
treef8cd1a2c30d6c56a848eb99be5ca615fdf48a7a8
parentb38941173443c82453b37e943b47688d8833e8c4
iommu/vt-d: Take CONFIG_PCI_ATS into account

pci_dev::physfn is only available when CONFIG_PCI_ATS is set. The recent
fix for the irqdomain rework missed that dependency which makes the build
fail when CONFIG_PCI_ATS=n.

Add the necessary #ifdeffery.

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Fixes: 08aa86b70e97 ("iommu/vt-d: Cure VF irqdomain hickup")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Joerg Roedel <joro@8bytes.org>
drivers/iommu/intel/dmar.c