Message ID | ea5db7e817bf018927cc5d80f6f392c1897c65cb.1524136402.git.mchehab@s-opensource.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 04/19/18 13:15, Mauro Carvalho Chehab wrote: > Drivers that depend on omap-iommu.h (currently, just omap3isp) > need a stub implementation in order to be built with COMPILE_TEST. > > Cc: Tony Lindgren <tony@atomide.com> > Cc: Arnd Bergmann <arnd@arndb.de> > Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> > Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Regards, Hans > --- > include/linux/omap-iommu.h | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/include/linux/omap-iommu.h b/include/linux/omap-iommu.h > index c1aede46718b..ce1b7c6283ee 100644 > --- a/include/linux/omap-iommu.h > +++ b/include/linux/omap-iommu.h > @@ -13,7 +13,12 @@ > #ifndef _OMAP_IOMMU_H_ > #define _OMAP_IOMMU_H_ > > +#ifdef CONFIG_OMAP_IOMMU > extern void omap_iommu_save_ctx(struct device *dev); > extern void omap_iommu_restore_ctx(struct device *dev); > +#else > +static inline void omap_iommu_save_ctx(struct device *dev) {} > +static inline void omap_iommu_restore_ctx(struct device *dev) {} > +#endif > > #endif >
diff --git a/include/linux/omap-iommu.h b/include/linux/omap-iommu.h index c1aede46718b..ce1b7c6283ee 100644 --- a/include/linux/omap-iommu.h +++ b/include/linux/omap-iommu.h @@ -13,7 +13,12 @@ #ifndef _OMAP_IOMMU_H_ #define _OMAP_IOMMU_H_ +#ifdef CONFIG_OMAP_IOMMU extern void omap_iommu_save_ctx(struct device *dev); extern void omap_iommu_restore_ctx(struct device *dev); +#else +static inline void omap_iommu_save_ctx(struct device *dev) {} +static inline void omap_iommu_restore_ctx(struct device *dev) {} +#endif #endif