Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2CBBA53E19 for ; Mon, 25 Dec 2023 22:10:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="mY8i1Tgf" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703542207; x=1735078207; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=WslF6pCqv0ROOKh3K71RWbJbQWmcnZZb1m7X3+cRsY8=; b=mY8i1Tgf1Vj1fAyt9dK8o1ovzmWG2faLs8no/piVQoktoiXSBLGhcjdl +XpIDXvUfifut2L9imAQaqboxrUYhjKZ1CpTKHpJSmnflBYhNbt7L54td ewrDvZM0Ney7arbSxM2h13pY9Y+MNTEM4pdRkyNaWqVPVyHcNqe1j+bhe i4CdcgW+8tCHz6IAiXFj/M2eoCHWdraR0V4O78ZNlH2bNY1QhCBP0DUQS yqHqk2ihpvTFOG9gFptiNvJnyahBIrbhUbIjA3DdKvETQCrhkSh0sMTpV uynhbOAzK9Nzj6Awatx0Kh8OgdnXp/cScQL2fTQooiBKkMhurfXKfDdPR w==; X-IronPort-AV: E=McAfee;i="6600,9927,10934"; a="399090735" X-IronPort-AV: E=Sophos;i="6.04,304,1695711600"; d="scan'208";a="399090735" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Dec 2023 14:10:06 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10934"; a="1109223676" X-IronPort-AV: E=Sophos;i="6.04,304,1695711600"; d="scan'208";a="1109223676" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by fmsmga005.fm.intel.com with ESMTP; 25 Dec 2023 14:10:04 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rHt98-000DiP-2O; Mon, 25 Dec 2023 22:10:02 +0000 Date: Tue, 26 Dec 2023 06:09:27 +0800 From: kernel test robot To: Cheng Xu , jgg@ziepe.ca, leon@kernel.org Cc: oe-kbuild-all@lists.linux.dev, linux-rdma@vger.kernel.org, KaiShen@linux.alibaba.com Subject: Re: [PATCH for-next v2 2/2] RDMA/erdma: Add hardware statistics support Message-ID: <202312260550.9DPkrw52-lkp@intel.com> References: <20231225032117.7493-3-chengyou@linux.alibaba.com> Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231225032117.7493-3-chengyou@linux.alibaba.com> 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@intel.com/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@intel.com/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 | Closes: https://lore.kernel.org/oe-kbuild-all/202312260550.9DPkrw52-lkp@intel.com/ 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