[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202202181128.nqOiwDlV-lkp@intel.com>
Date: Fri, 18 Feb 2022 11:58:24 +0800
From: kernel test robot <lkp@...el.com>
To: Jens Axboe <axboe@...nel.dk>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [axboe-block:m1-test-nvme 25/27] drivers/nvme/host/apple.c:507:15:
error: 'struct bio_vec' has no member named 'bv_dma_start'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git m1-test-nvme
head: c0629b5191ba9a1a5372182580dc5452072ac666
commit: abdcb53ec9f23b6669cce5845151c6a1925bfd3d [25/27] apple-nvme: support persistent DMA maps
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20220218/202202181128.nqOiwDlV-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/commit/?id=abdcb53ec9f23b6669cce5845151c6a1925bfd3d
git remote add axboe-block https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
git fetch --no-tags axboe-block m1-test-nvme
git checkout abdcb53ec9f23b6669cce5845151c6a1925bfd3d
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sh SHELL=/bin/bash drivers/nvme/host/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
drivers/nvme/host/apple.c: In function 'apple_nvme_setup_prp_simple':
>> drivers/nvme/host/apple.c:507:15: error: 'struct bio_vec' has no member named 'bv_dma_start'
507 | if (bv->bv_dma_start) {
| ^~
drivers/nvme/host/apple.c:509:36: error: 'struct bio_vec' has no member named 'bv_dma_start'
509 | iod->first_dma = bv->bv_dma_start;
| ^~
vim +507 drivers/nvme/host/apple.c
497
498 static blk_status_t apple_nvme_setup_prp_simple(struct apple_nvme *anv,
499 struct request *req,
500 struct nvme_rw_command *cmnd,
501 struct bio_vec *bv)
502 {
503 struct apple_nvme_iod *iod = blk_mq_rq_to_pdu(req);
504 unsigned int offset = bv->bv_offset & (NVME_CTRL_PAGE_SIZE - 1);
505 unsigned int first_prp_len = NVME_CTRL_PAGE_SIZE - offset;
506
> 507 if (bv->bv_dma_start) {
508 iod->persistent = true;
509 iod->first_dma = bv->bv_dma_start;
510 } else {
511 iod->first_dma = dma_map_bvec(anv->dev, bv, rq_dma_dir(req), 0);
512 if (dma_mapping_error(anv->dev, iod->first_dma))
513 return BLK_STS_RESOURCE;
514 }
515 iod->dma_len = bv->bv_len;
516
517 cmnd->dptr.prp1 = iod->first_dma;
518 if (bv->bv_len > first_prp_len)
519 cmnd->dptr.prp2 = iod->first_dma + first_prp_len;
520 return BLK_STS_OK;
521 }
522
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists