From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (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 247902E765B for ; Thu, 26 Jun 2025 13:56:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750946182; cv=none; b=i7BXD98sm0FLAhAnc/ckcLC2ajeo0C51XsahIJc93kVeD9bIUa+xGycyF+77WHytcOWpHnjFDjBX5NCYgUQvSMESThjpAQuTg4bDCie0Gf7z7sxARS69Q0FFncmelOjWd7izkcJiQ4zBt/p3H6WvAlRamOjeJHfjWGY35SV5ZX0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750946182; c=relaxed/simple; bh=jaqXXG5R4koVOdTArTjFoKG688MrkA8k9DmX3GDeMlU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=S1cCOXJcxn6bSuSM6dOnItVH+33hH+0YQ8UT1AMxdsf58LSa/PAEm13rb6MKUFLKPolsneFo6ZgqW0Ujy8WmpfKJYeEEG1CgBaHzz6h5JRrLQGmYAFrjNioMjvB/f841iGWJrtj7izaetiKDeL2oqElURyvTSZUqsF4lg72UWZI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Zs7jsRhl; arc=none smtp.client-ip=192.198.163.17 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="Zs7jsRhl" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1750946180; x=1782482180; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=jaqXXG5R4koVOdTArTjFoKG688MrkA8k9DmX3GDeMlU=; b=Zs7jsRhliwmqG/cGczCs+Zw1HrcaIxcEAazsyqyOoEDPukRvPHlH32hF 542fVdekQxM8P1MtiHXainl4AS525wc8YK8LBvl94T0JL6d/jpH1Jo1kf qI8GMNTMqVpC36kNxEVLRyeMGZCsPpSinDMnOOkjfx0JShTGH6vM4a9Kl WOBs55kx+/z77p6wK6KJPKlDw9f1cuN6P1+j+XeLVFLdxEMgCWAjhD5nb OPDWlBzaGoCODKF0Tb1S2Jovp+GI2jBKvwOharCKdPffXtmLaiElIY+P8 WdJHjNeb54IOM2frhykO2ZCMufTaiCEzuzDaIG4knt8FFYc4J3D3mPsRa g==; X-CSE-ConnectionGUID: I7cuIrCPSuSIKHQCZw+EFQ== X-CSE-MsgGUID: WOmMCDFFSlGM7pbQsQajqg== X-IronPort-AV: E=McAfee;i="6800,10657,11475"; a="53183634" X-IronPort-AV: E=Sophos;i="6.16,267,1744095600"; d="scan'208";a="53183634" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2025 06:56:19 -0700 X-CSE-ConnectionGUID: NGH7T0xSTASuJYnDRCPHKw== X-CSE-MsgGUID: iW5K/uxGRXqFk+6Dxx6XNg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,267,1744095600"; d="scan'208";a="158024990" Received: from lkp-server01.sh.intel.com (HELO e8142ee1dce2) ([10.239.97.150]) by fmviesa004.fm.intel.com with ESMTP; 26 Jun 2025 06:56:17 -0700 Received: from kbuild by e8142ee1dce2 with local (Exim 4.96) (envelope-from ) id 1uUn5K-000U72-2R; Thu, 26 Jun 2025 13:56:14 +0000 Date: Thu, 26 Jun 2025 21:55:20 +0800 From: kernel test robot To: Keith Busch , hch@lst.de, linux-nvme@lists.infradead.org, linux-block@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, axboe@kernel.dk, leon@kernel.org, joshi.k@samsung.com, sagi@grimberg.me, Keith Busch Subject: Re: [PATCH 2/2] nvme: convert metadata mapping to dma iter Message-ID: <202506262128.hNOOLoxM-lkp@intel.com> References: <20250625204445.1802483-2-kbusch@meta.com> Precedence: bulk X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250625204445.1802483-2-kbusch@meta.com> Hi Keith, kernel test robot noticed the following build errors: [auto build test ERROR on axboe-block/for-next] [also build test ERROR on next-20250626] [cannot apply to linux-nvme/for-next hch-configfs/for-next linus/master v6.16-rc3] [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/Keith-Busch/nvme-convert-metadata-mapping-to-dma-iter/20250626-044623 base: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-next patch link: https://lore.kernel.org/r/20250625204445.1802483-2-kbusch%40meta.com patch subject: [PATCH 2/2] nvme: convert metadata mapping to dma iter config: i386-buildonly-randconfig-002-20250626 (https://download.01.org/0day-ci/archive/20250626/202506262128.hNOOLoxM-lkp@intel.com/config) compiler: clang version 20.1.7 (https://github.com/llvm/llvm-project 6146a88f60492b520a36f8f8f3231e15f3cc6082) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250626/202506262128.hNOOLoxM-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/202506262128.hNOOLoxM-lkp@intel.com/ All errors (new ones prefixed by >>): >> drivers/nvme/host/pci.c:1023:7: error: call to undeclared function 'blk_rq_integrity_dma_map_iter_start'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1023 | if (!blk_rq_integrity_dma_map_iter_start(req, dev->dev, &iter)) | ^ drivers/nvme/host/pci.c:1023:7: note: did you mean 'blk_rq_dma_map_iter_start'? include/linux/blk-mq-dma.h:21:6: note: 'blk_rq_dma_map_iter_start' declared here 21 | bool blk_rq_dma_map_iter_start(struct request *req, struct device *dma_dev, | ^ >> drivers/nvme/host/pci.c:1041:11: error: call to undeclared function 'blk_rq_integrity_dma_map_iter_next'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1041 | } while (blk_rq_integrity_dma_map_iter_next(req, dev->dev, &iter)); | ^ drivers/nvme/host/pci.c:3336:41: warning: shift count >= width of type [-Wshift-count-overflow] 3336 | dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64)); | ^~~~~~~~~~~~~~~~ include/linux/dma-mapping.h:73:54: note: expanded from macro 'DMA_BIT_MASK' 73 | #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1)) | ^ ~~~ 1 warning and 2 errors generated. vim +/blk_rq_integrity_dma_map_iter_start +1023 drivers/nvme/host/pci.c 1012 1013 static blk_status_t nvme_pci_setup_meta_sgls(struct request *req) 1014 { 1015 struct nvme_queue *nvmeq = req->mq_hctx->driver_data; 1016 struct nvme_iod *iod = blk_mq_rq_to_pdu(req); 1017 struct nvme_dev *dev = nvmeq->dev; 1018 struct nvme_sgl_desc *sg_list; 1019 struct blk_dma_iter iter; 1020 dma_addr_t sgl_dma; 1021 int i = 0; 1022 > 1023 if (!blk_rq_integrity_dma_map_iter_start(req, dev->dev, &iter)) 1024 return iter.status; 1025 1026 sg_list = dma_pool_alloc(nvmeq->descriptor_pools.small, GFP_ATOMIC, 1027 &sgl_dma); 1028 if (!sg_list) 1029 return BLK_STS_RESOURCE; 1030 1031 iod->meta_descriptor = sg_list; 1032 iod->meta_dma = sgl_dma; 1033 1034 iod->cmd.common.flags = NVME_CMD_SGL_METASEG; 1035 iod->cmd.common.metadata = cpu_to_le64(sgl_dma); 1036 1037 sgl_dma += sizeof(*sg_list); 1038 1039 do { 1040 nvme_pci_sgl_set_data(&sg_list[++i], &iter); > 1041 } while (blk_rq_integrity_dma_map_iter_next(req, dev->dev, &iter)); 1042 1043 nvme_pci_sgl_set_seg(sg_list, sgl_dma, i); 1044 iod->nr_meta_descriptors = i; 1045 return BLK_STS_OK; 1046 } 1047 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki