On Fri, Mar 20, 2020 at 03:13:37PM +0800, YueHaibing wrote: > When CONFIG_PM is disabled, gcc warning this: > > drivers/dma/tegra20-apb-dma.c:1587:12: warning: 'tegra_dma_runtime_resume' defined but not used [-Wunused-function] > drivers/dma/tegra20-apb-dma.c:1578:12: warning: 'tegra_dma_runtime_suspend' defined but not used [-Wunused-function] > > Make it as __maybe_unused to fix the warnings, > also remove unneeded function declarations. > > Fixes: ec8a1586780c ("dma: tegra: add dmaengine based dma driver") > Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx> > --- > drivers/dma/tegra20-apb-dma.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) Acked-by: Thierry Reding <treding@xxxxxxxxxx>
Attachment:
signature.asc
Description: PGP signature