Hi Cheng, kernel test robot noticed the following build warnings: [auto build test WARNING on rdma/for-next] [also build test WARNING on linus/master v6.7-rc7 next-20231222] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Cheng-Xu/RDMA-erdma-Introduce-dma-pool-for-hardware-responses-of-CMDQ-requests/20231225-154653 base: https://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git for-next patch link: https://lore.kernel.org/r/20231225032117.7493-3-chengyou%40linux.alibaba.com patch subject: [PATCH for-next v2 2/2] RDMA/erdma: Add hardware statistics support config: s390-allyesconfig (https://download.01.org/0day-ci/archive/20231226/202312260550.9DPkrw52-lkp@xxxxxxxxx/config) compiler: s390-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231226/202312260550.9DPkrw52-lkp@xxxxxxxxx/reproduce) 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@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202312260550.9DPkrw52-lkp@xxxxxxxxx/ All warnings (new ones prefixed by >>): >> drivers/infiniband/hw/erdma/erdma_verbs.c:1750:5: warning: no previous prototype for 'erdma_query_hw_stats' [-Wmissing-prototypes] 1750 | int erdma_query_hw_stats(struct erdma_dev *dev, struct rdma_hw_stats *stats) | ^~~~~~~~~~~~~~~~~~~~ vim +/erdma_query_hw_stats +1750 drivers/infiniband/hw/erdma/erdma_verbs.c 1749 > 1750 int erdma_query_hw_stats(struct erdma_dev *dev, struct rdma_hw_stats *stats) 1751 { 1752 struct erdma_cmdq_query_stats_resp *resp; 1753 struct erdma_cmdq_query_req req; 1754 dma_addr_t dma_addr; 1755 int err; 1756 1757 erdma_cmdq_build_reqhdr(&req.hdr, CMDQ_SUBMOD_COMMON, 1758 CMDQ_OPCODE_GET_STATS); 1759 1760 resp = dma_pool_zalloc(dev->resp_pool, GFP_KERNEL, &dma_addr); 1761 if (!resp) 1762 return -ENOMEM; 1763 1764 req.target_addr = dma_addr; 1765 req.target_length = ERDMA_HW_RESP_SIZE; 1766 1767 err = erdma_post_cmd_wait(&dev->cmdq, &req, sizeof(req), NULL, NULL); 1768 if (err) 1769 goto out; 1770 1771 if (resp->hdr.magic != ERDMA_HW_RESP_MAGIC) { 1772 err = -EINVAL; 1773 goto out; 1774 } 1775 1776 memcpy(&stats->value[0], &resp->tx_req_cnt, 1777 sizeof(u64) * stats->num_counters); 1778 1779 out: 1780 dma_pool_free(dev->resp_pool, resp, dma_addr); 1781 1782 return err; 1783 } 1784 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki