tree:
git://git.infradead.org/users/hch/block.git bvec-phys
head: 1caceae1dbe2ae172c3df6aa09d8122e0cc6b9e3
commit: 2abcd5b331a54386d77b81e7bd8f5d5f8e675db9 [7/30] ps3disk: use
memcpy_{from,to}_bvec
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.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
git remote add hch-block
git://git.infradead.org/users/hch/block.git
git fetch --no-tags hch-block bvec-phys
git checkout 2abcd5b331a54386d77b81e7bd8f5d5f8e675db9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/block/ps3disk.c: In function 'ps3disk_scatter_gather':
> drivers/block/ps3disk.c:90:48: error: 'bv' undeclared
(first use in this function); did you mean 'bvec'?
90 |
memcpy_from_bvec(dev->bounce_buf + offset, &bv)
| ^~
| bvec
drivers/block/ps3disk.c:90:48: note: each undeclared identifier is reported only once
for each function it appears in
> drivers/block/ps3disk.c:90:51: error: expected ';' before
'else'
90 | memcpy_from_bvec(dev->bounce_buf + offset, &bv)
| ^
| ;
91 | else
| ~~~~
vim +90 drivers/block/ps3disk.c
79
80
81 static void ps3disk_scatter_gather(struct ps3_storage_device *dev,
82 struct request *req, int gather)
83 {
84 unsigned int offset = 0;
85 struct req_iterator iter;
86 struct bio_vec bvec;
87
88 rq_for_each_segment(bvec, req, iter) {
89 if (gather)
90 memcpy_from_bvec(dev->bounce_buf + offset, &bv)
91 else
92 memcpy_to_bvec(&bv dev->bounce_buf + offset);
93 offset += bvec.bv_len;
94 }
95 }
96
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org