提交 3a0c22cb 编写于 作者: J Joerg Roedel 提交者: Greg Kroah-Hartman

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: NJoerg Roedel <jroedel@suse.de>
Signed-off-by: NDmitry Safonov <dima@arista.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册