From d477f4a7adb04c0e25ea545d24d5d24c6e0ff822 Mon Sep 17 00:00:00 2001 From: Joerg Roedel Date: Tue, 6 Aug 2019 14:33:11 +0800 Subject: [PATCH] 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 Signed-off-by: Dmitry Safonov Signed-off-by: Greg Kroah-Hartman Signed-off-by: Yang Yingliang --- include/linux/iova.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/iova.h b/include/linux/iova.h index 4057b4f057ec..35c453085a4f 100644 --- a/include/linux/iova.h +++ b/include/linux/iova.h @@ -238,7 +238,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; } -- GitLab