summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/omap-iopgtable.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-02-29 10:19:07 +0100
committerJoerg Roedel <jroedel@suse.de>2016-02-29 16:47:46 +0100
commitfd99f796a20b1a805c80ee51d7349d65103e7aaf (patch)
tree77166a097f40b9f24ad843d38570840d6c37cdd4 /drivers/iommu/omap-iopgtable.h
parent1928832f0241f0c39fcd2ce73aaa39d37db50a97 (diff)
downloadtalos-obmc-linux-fd99f796a20b1a805c80ee51d7349d65103e7aaf.tar.gz
talos-obmc-linux-fd99f796a20b1a805c80ee51d7349d65103e7aaf.zip
iommu/mediatek: Mark PM functions as __maybe_unused
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 functions as __maybe_unused gits rid of the two functions and lets the compiler silently drop the object code, while still doing syntax checking on them for build-time verification. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: 0df4fabe208d ("iommu/mediatek: Add mt8173 IOMMU driver") Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/omap-iopgtable.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud