aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pci-ats.h
diff options
context:
space:
mode:
authorKuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>2019-02-27 11:26:46 -0800
committerJoerg Roedel <jroedel@suse.de>2019-02-28 11:09:29 +0100
commitfff42928ade591969836ff49888d063b829ac888 (patch)
tree5da386046feff04dc0cfeaca3a98945e6041c19b /include/linux/pci-ats.h
parentiommu/vt-d: Check identity map for hot-added devices (diff)
downloadlinux-dev-fff42928ade591969836ff49888d063b829ac888.tar.xz
linux-dev-fff42928ade591969836ff49888d063b829ac888.zip
PCI/ATS: Add inline to pci_prg_resp_pasid_required()
Fix unused function warning when compiled with CONFIG_PCI_PASID disabled. Fixes: e5567f5f6762 ("PCI/ATS: Add pci_prg_resp_pasid_required() interface.") Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'include/linux/pci-ats.h')
-rw-r--r--include/linux/pci-ats.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/pci-ats.h b/include/linux/pci-ats.h
index facfd6a18fe1..1ebb88e7c184 100644
--- a/include/linux/pci-ats.h
+++ b/include/linux/pci-ats.h
@@ -67,7 +67,7 @@ static inline int pci_max_pasids(struct pci_dev *pdev)
return -EINVAL;
}
-static int pci_prg_resp_pasid_required(struct pci_dev *pdev)
+static inline int pci_prg_resp_pasid_required(struct pci_dev *pdev)
{
return 0;
}