Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: d965068259d1 ("dmaengine: PTDMA: support polled mode")
Link: https://lore.kernel.org/r/20220421052407.745637-1-vkoul@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

+1 -1
+1 -1
drivers/dma/ptdma/ptdma-dmaengine.c
··· 258 258 pt_cmd_callback(desc, 0); 259 259 } 260 260 261 - enum dma_status 261 + static enum dma_status 262 262 pt_tx_status(struct dma_chan *c, dma_cookie_t cookie, 263 263 struct dma_tx_state *txstate) 264 264 {