[vkoul-dmaengine:next 26/38] drivers/dma/ptdma/ptdma-dmaengine.c:262:1: warning: no previous prototype for 'pt_tx_status'

From: kernel test robot
Date: Thu Apr 21 2022 - 02:45:24 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine.git next
head: 643a4a85b0bc7efeb5732fb4563c43c77ba0c6ac
commit: d965068259d13fde49487b45064106d3d0c57a74 [26/38] dmaengine: PTDMA: support polled mode
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20220421/202204210451.7D2dVECE-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.2.0-20) 11.2.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine.git/commit/?id=d965068259d13fde49487b45064106d3d0c57a74
git remote add vkoul-dmaengine https://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine.git
git fetch --no-tags vkoul-dmaengine next
git checkout d965068259d13fde49487b45064106d3d0c57a74
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/dma/ptdma/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/dma/ptdma/ptdma-dmaengine.c:262:1: warning: no previous prototype for 'pt_tx_status' [-Wmissing-prototypes]
262 | pt_tx_status(struct dma_chan *c, dma_cookie_t cookie,
| ^~~~~~~~~~~~


vim +/pt_tx_status +262 drivers/dma/ptdma/ptdma-dmaengine.c

260
261 enum dma_status
> 262 pt_tx_status(struct dma_chan *c, dma_cookie_t cookie,
263 struct dma_tx_state *txstate)
264 {
265 struct pt_device *pt = to_pt_chan(c)->pt;
266 struct pt_cmd_queue *cmd_q = &pt->cmd_q;
267
268 pt_check_status_trans(pt, cmd_q);
269 return dma_cookie_status(c, cookie, txstate);
270 }
271

--
0-DAY CI Kernel Test Service
https://01.org/lkp