Re: [PATCH 2/2] iommu/mediatek: mark PM functions as __maybe_unused

2016-02-29 Thread Yong Wu
On Mon, 2016-02-29 at 10:19 +0100, Arnd Bergmann wrote: > When CONFIG_PM is unset, we get a harmless warning for this driver: > > drivers/iommu/mtk_iommu.c:665:12: error: 'mtk_iommu_suspend' defined but not > used [-Werror=unused-function] > drivers/iommu/mtk_iommu.c:680:12: error: 'mtk_iommu_res

[PATCH 2/2] iommu/mediatek: mark PM functions as __maybe_unused

2016-02-29 Thread Arnd Bergmann
When CONFIG_PM is unset, we get a harmless warning for this driver: drivers/iommu/mtk_iommu.c:665:12: error: 'mtk_iommu_suspend' defined but not used [-Werror=unused-function] drivers/iommu/mtk_iommu.c:680:12: error: 'mtk_iommu_resume' defined but not used [-Werror=unused-function] Marking the