diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-09-03 09:50:56 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2019-09-03 15:58:20 +0300 |
commit | 097a7df2e3af1b716cd39ce90001a2c372488e58 (patch) | |
tree | b0dc862404b5e56a5791705ab2bd5597a81fd5d6 /drivers/iommu/dma-iommu.c | |
parent | dbe8e6a81a2a45dfa210c2c271472db80efaa03f (diff) | |
download | linux-097a7df2e3af1b716cd39ce90001a2c372488e58.tar.xz |
iommu/arm-smmu-v3: Fix build error without CONFIG_PCI_ATS
If CONFIG_PCI_ATS is not set, building fails:
drivers/iommu/arm-smmu-v3.c: In function arm_smmu_ats_supported:
drivers/iommu/arm-smmu-v3.c:2325:35: error: struct pci_dev has no member named ats_cap; did you mean msi_cap?
return !pdev->untrusted && pdev->ats_cap;
^~~~~~~
ats_cap should only used when CONFIG_PCI_ATS is defined,
so use #ifdef block to guard this.
Fixes: bfff88ec1afe ("iommu/arm-smmu-v3: Rework enabling/disabling of ATS for PCI masters")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/dma-iommu.c')
0 files changed, 0 insertions, 0 deletions