diff options
author | Vinod Koul <vkoul@kernel.org> | 2023-05-16 23:13:11 +0530 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2023-05-17 12:15:47 +0530 |
commit | 38de368a66360f1859428d5e191b45bd01c20786 (patch) | |
tree | 64d93702afa0d20ba3feb99444f3d99cf4974980 /drivers/dma/pl330.c | |
parent | 0642287e3ecdd0d1f88e6a2e63768e16153a990c (diff) | |
download | lwn-38de368a66360f1859428d5e191b45bd01c20786.tar.gz lwn-38de368a66360f1859428d5e191b45bd01c20786.zip |
dmaengine: ti: k3-udma: annotate pm function with __maybe_unused
We get a warning when PM is not set:
../drivers/dma/ti/k3-udma.c:5552:12: warning: 'udma_pm_resume' defined but not used [-Wunused-function]
5552 | static int udma_pm_resume(struct device *dev)
| ^~~~~~~~~~~~~~
../drivers/dma/ti/k3-udma.c:5530:12: warning: 'udma_pm_suspend' defined but not used [-Wunused-function]
5530 | static int udma_pm_suspend(struct device *dev)
| ^~~~~~~~~~~~~~~
Fix this by annotating pm function with __maybe_unused
Fixes: fbe05149e40b ("dmaengine: ti: k3-udma: Add system suspend/resume support")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Link: https://lore.kernel.org/r/20230516174311.117264-1-vkoul@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/pl330.c')
0 files changed, 0 insertions, 0 deletions