summaryrefslogtreecommitdiff
path: root/include/linux/pci-ats.h
diff options
context:
space:
mode:
authorKuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>2019-02-27 22:26:46 +0300
committerJoerg Roedel <jroedel@suse.de>2019-02-28 13:09:29 +0300
commitfff42928ade591969836ff49888d063b829ac888 (patch)
tree5da386046feff04dc0cfeaca3a98945e6041c19b /include/linux/pci-ats.h
parent117266fd59ddf46e98e36df09326d861738c6180 (diff)
downloadlinux-fff42928ade591969836ff49888d063b829ac888.tar.xz
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;
}