Commits
Suman Anna committed a6491e17295
iommu/omap: fix a build warning in OMAP IOMMU header file The commit b113a85ebbe0 ("iommu/omap: introduce new API for runtime suspend/resume control") introduced two new API for suspend/resume functionality and did not forward declare the struct iommu_domain. This resulted in build warnings like below on the OMAP3 ISP driver, which is also a consumer of the OMAP IOMMU driver, as it includes the omap-iommu.h file without including the generic iommu.h file. In file included from drivers/media/platform/omap3isp/isp.c:56:0: include/linux/omap-iommu.h:19:41: warning: 'struct iommu_domain' declared inside parameter list int omap_iommu_domain_deactivate(struct iommu_domain *domain); ^ include/linux/omap-iommu.h:19:41: warning: its scope is only this definition or declaration, which is probably not what you want include/linux/omap-iommu.h:20:39: warning: 'struct iommu_domain' declared inside parameter list int omap_iommu_domain_activate(struct iommu_domain *domain); ^ Fix these by using a forward declaration for the struct iommu_domain within the omap-iommu.h file. This avoids both the need to include iommu.h in this header file as well making any implicit assumptions on consumers to include the iommu.h header file. Fixes: b113a85ebbe0 ("iommu/omap: introduce new API for runtime suspend/resume control") Signed-off-by: Suman Anna <s-anna@ti.com>