diff options
author | Arnd Bergmann <[email protected]> | 2019-09-06 17:15:38 +0200 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2019-09-06 17:55:21 +0200 |
commit | 96088a203a0b6c7564bc14167eec89c5427fd18e (patch) | |
tree | 53c2ea06a436f6476da7f53325f83318e65861ef /lib/test-string_helpers.c | |
parent | 24ce0bab260b59964629bb4d9570f0548b89e490 (diff) |
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: db8918f61d51 ("iommu/omap: streamline enable/disable through runtime pm callbacks")
Signed-off-by: Arnd Bergmann <[email protected]>
Acked-by: Suman Anna <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions