]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/omap: Mark pm functions __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Fri, 6 Sep 2019 15:15:38 +0000 (17:15 +0200)
committerJoerg Roedel <jroedel@suse.de>
Fri, 6 Sep 2019 15:55:21 +0000 (17:55 +0200)
commitdf0bd31c142465148d143714687867aa5effaba0
tree53c2ea06a436f6476da7f53325f83318e65861ef
parentea3b5c2216ae23854b4652dbbe54ea03b28fd18b
iommu/omap: Mark pm functions __maybe_unused

The runtime_pm functions are unused when CONFIG_PM is disabled:

drivers/iommu/omap-iommu.c:1022:12: error: unused function 'omap_iommu_runtime_suspend' [-Werror,-Wunused-function]
static int omap_iommu_runtime_suspend(struct device *dev)
drivers/iommu/omap-iommu.c:1064:12: error: unused function 'omap_iommu_runtime_resume' [-Werror,-Wunused-function]
static int omap_iommu_runtime_resume(struct device *dev)

Mark them as __maybe_unused to let gcc silently drop them
instead of warning.

Fixes: 295885181763 ("iommu/omap: streamline enable/disable through runtime pm callbacks")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/omap-iommu.c