Skip to contentSkip to conversation

dmaengine: ptdma: statify pt_tx_status

PATCH Applied Vinod Koul 1 participant 2 messages Apr 21, 2022 – Apr 22, 2022 dmaengine

lore
Share & tools
lore

Vinod Koul

author maintainer
#0 lore raw

PATCH 1/1 dmaengine: ptdma: statify pt_tx_status

LKP bot reports a new warning:
Warning:
drivers/dma/ptdma/ptdma-dmaengine.c:262:1: warning: no previous prototype for 'pt_tx_status' [-Wmissing-prototypes]

pt_tx_status() should be static, so declare as such.

Fixes d965068259d1 ("dmaengine: PTDMA: support polled mode")
---
 drivers/dma/ptdma/ptdma-dmaengine.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/ptdma/ptdma-dmaengine.c +1 -1
index ea07cc42f4d0..cc22d162ce25 100644
@@ -258,7 +258,7 @@ static void pt_issue_pending(struct dma_chan *dma_chan)
 		pt_cmd_callback(desc, 0);
 }
 
-enum dma_status
+static enum dma_status
 pt_tx_status(struct dma_chan *c, dma_cookie_t cookie,
 		struct dma_tx_state *txstate)
 {
Signature · 1 line
2.34.1
author maintainer Applied
#1 lore raw
Quoted 5 lines · Vinod Koul

LKP bot reports a new warning:
Warning:
drivers/dma/ptdma/ptdma-dmaengine.c:262:1: warning: no previous prototype for 'pt_tx_status' [-Wmissing-prototypes]

pt_tx_status() should be static, so declare as such.

Applied, thanks

Signature · 1 line
~Vinod