Commit 3a0c22cb authored by Joerg Roedel's avatar Joerg Roedel Committed by Greg Kroah-Hartman

iommu/iova: Fix compilation error with !CONFIG_IOMMU_IOVA

commit 201c1db9 upstream.

The stub function for !CONFIG_IOMMU_IOVA needs to be
'static inline'.

Fixes: effa4678 ('iommu/vt-d: Don't queue_iova() if there is no flush queue')
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
Signed-off-by: default avatarDmitry Safonov <dima@arista.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4fd0eb60
......@@ -237,7 +237,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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment