Skip to content

Commit 07c609c

Browse files
caihuoqing1990vinodkoul
authored andcommitted
dmaengine: sa11x0: Mark PM functions as __maybe_unused
Without CONFIG_PM_SLEEP, the runtime suspend/resume functions are unused, producing a warning: ../drivers/dma/sa11x0-dma.c:1042:12: error: 'sa11x0_dma_resume' defined but not used ../drivers/dma/sa11x0-dma.c:1004:12: error: 'sa11x0_dma_suspend' defined but not used Signed-off-by: Cai Huoqing <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent c726c62 commit 07c609c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/dma/sa11x0-dma.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ static int sa11x0_dma_remove(struct platform_device *pdev)
10011001
return 0;
10021002
}
10031003

1004-
static int sa11x0_dma_suspend(struct device *dev)
1004+
static __maybe_unused int sa11x0_dma_suspend(struct device *dev)
10051005
{
10061006
struct sa11x0_dma_dev *d = dev_get_drvdata(dev);
10071007
unsigned pch;
@@ -1039,7 +1039,7 @@ static int sa11x0_dma_suspend(struct device *dev)
10391039
return 0;
10401040
}
10411041

1042-
static int sa11x0_dma_resume(struct device *dev)
1042+
static __maybe_unused int sa11x0_dma_resume(struct device *dev)
10431043
{
10441044
struct sa11x0_dma_dev *d = dev_get_drvdata(dev);
10451045
unsigned pch;

0 commit comments

Comments
 (0)