From: Joerg Roedel Date: Tue, 23 Jul 2019 07:51:00 +0000 (+0200) Subject: iommu/iova: Fix compilation error with !CONFIG_IOMMU_IOVA X-Git-Tag: v5.4-rc1~460^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=201c1db90cd643282185a00770f12f95da330eca;p=platform%2Fkernel%2Flinux-rpi.git iommu/iova: Fix compilation error with !CONFIG_IOMMU_IOVA 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 --- diff --git a/include/linux/iova.h b/include/linux/iova.h index cd0f1de..a0637ab 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; }