diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-07-09 10:32:58 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2019-07-25 14:59:44 +0200 |
commit | d105ef8120dd522c3233a1395ee0b318ed0929e8 (patch) | |
tree | b4a6cdf62d4fec088a7dcff7b66fd73064424764 /drivers/dma/stm32-mdma.c | |
parent | dmaengine: ste_dma40: fix unneeded variable warning (diff) | |
download | linux-d105ef8120dd522c3233a1395ee0b318ed0929e8.tar.xz linux-d105ef8120dd522c3233a1395ee0b318ed0929e8.zip |
dmaengine: tegra210-adma: Fix unused function warnings
If CONFIG_PM is not set, build warnings:
drivers/dma/tegra210-adma.c:747:12: warning: tegra_adma_runtime_resume defined but not used [-Wunused-function]
static int tegra_adma_runtime_resume(struct device *dev)
drivers/dma/tegra210-adma.c:715:12: warning: tegra_adma_runtime_suspend defined but not used [-Wunused-function]
static int tegra_adma_runtime_suspend(struct device *dev)
Mark the two function as __maybe_unused.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Fixes: 3145d73e69ba ("dmaengine: tegra210-adma: remove PM_CLK dependency")
Fixes: f46b195799b5 ("dmaengine: tegra-adma: Add support for Tegra210 ADMA")
Reported-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://lore.kernel.org/r/20190709083258.57112-1-yuehaibing@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/stm32-mdma.c')
0 files changed, 0 insertions, 0 deletions