From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thierry Reding Subject: [PATCH 2/2] iommu: Implement a dummy bus_set_iommu() Date: Fri, 1 Aug 2014 14:45:13 +0200 Message-ID: <1406897113-20099-2-git-send-email-thierry.reding@gmail.com> References: <1406897113-20099-1-git-send-email-thierry.reding@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1406897113-20099-1-git-send-email-thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Joerg Roedel Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: iommu@lists.linux-foundation.org From: Thierry Reding This allows IOMMU drivers to compile even if IOMMU_API is not selected and helps improve compile coverage. Signed-off-by: Thierry Reding --- include/linux/iommu.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/iommu.h b/include/linux/iommu.h index 0b5222c7ff97..415608ea2999 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h @@ -242,6 +242,12 @@ static inline int report_iommu_fault(struct iommu_domain *domain, #else /* CONFIG_IOMMU_API */ +static inline int bus_set_iommu(struct bus_type *bus, + const struct iommu_ops *ops) +{ + return -ENOSYS; +} + static inline bool iommu_present(struct bus_type *bus) { return false; -- 2.0.3