summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2019-07-23 09:51:00 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-07-31 07:25:02 +0200
commit32e5133912ff141128a8795ae8abb85d209dfc20 (patch)
treea969fd8b50f462f09c7b5e8d979f54dd0a379c07 /include
parent0ce35762bad71d077b7a582338a4e40ec0d3fc04 (diff)
downloadlinux-stable-32e5133912ff141128a8795ae8abb85d209dfc20.tar.gz
linux-stable-32e5133912ff141128a8795ae8abb85d209dfc20.tar.bz2
linux-stable-32e5133912ff141128a8795ae8abb85d209dfc20.zip
iommu/iova: Fix compilation error with !CONFIG_IOMMU_IOVA
commit 201c1db90cd643282185a00770f12f95da330eca upstream. The stub function for !CONFIG_IOMMU_IOVA needs to be 'static inline'. Fixes: effa467870c76 ('iommu/vt-d: Don't queue_iova() if there is no flush queue') Signed-off-by: Joerg Roedel <jroedel@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/iova.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/iova.h b/include/linux/iova.h
index cd0f1de901a8..a0637abffee8 100644
--- a/include/linux/iova.h
+++ b/include/linux/iova.h
@@ -236,7 +236,7 @@ static inline void init_iova_domain(struct iova_domain *iovad,
{
}
-bool has_iova_flush_queue(struct iova_domain *iovad)
+static inline bool has_iova_flush_queue(struct iova_domain *iovad)
{
return false;
}