diff options
author | Joerg Roedel <jroedel@suse.de> | 2019-07-23 09:51:00 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-08-04 09:32:02 +0200 |
commit | 417084878e022072086d2de916347b93941bd829 (patch) | |
tree | 9e020a4e397e388d598876017842c246663b9f25 /include/linux | |
parent | fc2ec1855e536950637b734b0c85caefcea7c3c6 (diff) |
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: Dmitry Safonov <dima@arista.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/iova.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/iova.h b/include/linux/iova.h index 0ecf069b1659..7d23bbb887f2 100644 --- a/include/linux/iova.h +++ b/include/linux/iova.h @@ -235,7 +235,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; } |