Skip to contentSkip to conversation

dmaengine: bcm2835-dma: fix warning when CONFIG_PM=n

PATCH Applied Stefan Wahren 2 participants 2 messages Jan 7, 2025 – Feb 27, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dmaengine: bcm2835-dma: fix warning when CONFIG_PM=n

The old SET_LATE_SYSTEM_SLEEP_PM_OPS macro cause a build warning when CONFIG_PM is disabled:

warning: 'bcm2835_dma_suspend_late' defined but not used [-Wunused-function]

Change this to the modern replacement.

---
 drivers/dma/bcm2835-dma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/bcm2835-dma.c +1 -1
index 20b10c15c696..0117bb2e8591 100644
@@ -893,7 +893,7 @@ static int bcm2835_dma_suspend_late(struct device *dev)
 }
 
 static const struct dev_pm_ops bcm2835_dma_pm_ops = {
-	SET_LATE_SYSTEM_SLEEP_PM_OPS(bcm2835_dma_suspend_late, NULL)
+	LATE_SYSTEM_SLEEP_PM_OPS(bcm2835_dma_suspend_late, NULL)
 };
 
 static int bcm2835_dma_probe(struct platform_device *pdev)

--
2.34.1

maintainer Applied
#1 lore raw
Quoted 8 lines · Stefan Wahren

The old SET_LATE_SYSTEM_SLEEP_PM_OPS macro cause a build warning when CONFIG_PM is disabled:

warning: 'bcm2835_dma_suspend_late' defined but not used [-Wunused-function]

Change this to the modern replacement.

[...]

Applied, thanks!

[1/1] dmaengine: bcm2835-dma: fix warning when CONFIG_PM=n

      commit: 95032938c7c9b2e5ebb69f0ee10ebe340fa3af53

Best regards,

Signature · 1 line
~Vinod