[openeuler:OLK-6.6 3029/3029] drivers/net/ethernet/huawei/bma/edma_drv/edma_queue.c:330:5: warning: no previous prototype for 'wait_done_dma_queue'

tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 490c39747983c9dbb0974244d1e74f1535394ba0 commit: 85502a982830072aff2efa8b65f75c240b4d6181 [3029/3029] Huawei iBMA: Added support for Hi1712 Chip config: x86_64-randconfig-161-20251023 (https://download.01.org/0day-ci/archive/20251023/202510230341.svqbkrke-lkp@i...) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251023/202510230341.svqbkrke-lkp@i...) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202510230341.svqbkrke-lkp@intel.com/ All warnings (new ones prefixed by >>):
drivers/net/ethernet/huawei/bma/edma_drv/edma_queue.c:330:5: warning: no previous prototype for 'wait_done_dma_queue' [-Wmissing-prototypes] 330 | s32 wait_done_dma_queue(unsigned long timeout) | ^~~~~~~~~~~~~~~~~~~
vim +/wait_done_dma_queue +330 drivers/net/ethernet/huawei/bma/edma_drv/edma_queue.c 329
330 s32 wait_done_dma_queue(unsigned long timeout) 331 { 332 struct dma_ch_cq_s *p_cur_last_cq; 333 struct dma_ch_cq_s *p_dma_cq; 334 unsigned long end; 335 u32 sq_tail; 336 u32 sq_valid; 337 u32 cq_tail; 338 u32 cq_valid; 339 340 p_dma_cq = (struct dma_ch_cq_s *)((&get_bma_dev()->edma_host)->edma_cq_addr); 341 end = jiffies + timeout; 342 343 while (time_before(jiffies, end)) { 344 (void)get_dma_queue_sq_tail(&sq_tail); 345 (void)get_dma_queue_cq_tail(&cq_tail); 346 347 cq_valid = (cq_tail + CQ_DEPTH - 1) % (CQ_DEPTH); 348 p_cur_last_cq = &p_dma_cq[cq_valid]; 349 sq_valid = (sq_tail + SQ_DEPTH - 1) % (SQ_DEPTH); 350 BMA_LOG(DLOG_DEBUG, 351 "sq_tail %d, cq_tail %d, cq_valid %d, sq_valid %d, p_cur_last_cq->sqhd %d\n", 352 sq_tail, cq_tail, cq_valid, sq_valid, p_cur_last_cq->sqhd); 353 if (p_cur_last_cq->sqhd == sq_valid) { 354 set_dma_queue_cq_head(cq_valid); 355 return 0; 356 } 357 } 358 359 return -ETIMEDOUT; 360 } 361
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot