From: kernel test robot <lkp@intel.com>
To: Jens Axboe <axboe@kernel.dk>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.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'
Date: Fri, 18 Feb 2022 11:58:24 +0800 [thread overview]
Message-ID: <202202181128.nqOiwDlV-lkp@intel.com> (raw)
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@intel.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
reply other threads:[~2022-02-18 3:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202202181128.nqOiwDlV-lkp@intel.com \
--to=lkp@intel.com \
--cc=axboe@kernel.dk \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®