aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/omap-iommu.h
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2019-08-09 18:09:13 +0200
committerJoerg Roedel <jroedel@suse.de>2019-08-09 19:56:05 +0200
commit73499ad21d595638213f2a5f8b9b58259fa0cae2 (patch)
treeeee5a72e846565a61015e47fca21cee6f3d4001e /include/linux/omap-iommu.h
parentiommu/omap: remove pm_runtime_irq_safe flag for OMAP IOMMUs (diff)
downloadlinux-dev-73499ad21d595638213f2a5f8b9b58259fa0cae2.tar.xz
linux-dev-73499ad21d595638213f2a5f8b9b58259fa0cae2.zip
iommu/omap: Fix compilation warnings
A recent patch introduced a new compiler warning because two functions with non-void return type have no return statement in omap-iommu.h for CONFIG_OMAP_IOMMU=n. Fix this by adding return statements to these functions. Fixes: d9c4d8a6cc0f8 ('iommu/omap: introduce new API for runtime suspend/resume control') Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'include/linux/omap-iommu.h')
-rw-r--r--include/linux/omap-iommu.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/linux/omap-iommu.h b/include/linux/omap-iommu.h
index 36b645726813..2c32ca09df02 100644
--- a/include/linux/omap-iommu.h
+++ b/include/linux/omap-iommu.h
@@ -22,8 +22,15 @@ int omap_iommu_domain_activate(struct iommu_domain *domain);
static inline void omap_iommu_save_ctx(struct device *dev) {}
static inline void omap_iommu_restore_ctx(struct device *dev) {}
-static inline int omap_iommu_domain_deactivate(struct iommu_domain *domain) {}
-static inline int omap_iommu_domain_activate(struct iommu_domain *domain) {}
+static inline int omap_iommu_domain_deactivate(struct iommu_domain *domain)
+{
+ return -ENODEV;
+}
+
+static inline int omap_iommu_domain_activate(struct iommu_domain *domain)
+{
+ return -ENODEV;
+}
#endif
#endif