Skip to content

Commit 73499ad

Browse files
committed
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: d9c4d8a ('iommu/omap: introduce new API for runtime suspend/resume control') Signed-off-by: Joerg Roedel <[email protected]>
1 parent 1432ebb commit 73499ad

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

include/linux/omap-iommu.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,15 @@ int omap_iommu_domain_activate(struct iommu_domain *domain);
2222
static inline void omap_iommu_save_ctx(struct device *dev) {}
2323
static inline void omap_iommu_restore_ctx(struct device *dev) {}
2424

25-
static inline int omap_iommu_domain_deactivate(struct iommu_domain *domain) {}
26-
static inline int omap_iommu_domain_activate(struct iommu_domain *domain) {}
25+
static inline int omap_iommu_domain_deactivate(struct iommu_domain *domain)
26+
{
27+
return -ENODEV;
28+
}
29+
30+
static inline int omap_iommu_domain_activate(struct iommu_domain *domain)
31+
{
32+
return -ENODEV;
33+
}
2734
#endif
2835

2936
#endif

0 commit comments

Comments
 (0)