[dm-devel] [dm:for-next 30/30] drivers/md/dm-bufio.c:1342:13: error: implicit declaration of function 'block_to_sector'; did you mean 'blk_rq_sectors'?
kbuild test robot
lkp at intel.com
Sat Apr 25 12:42:39 UTC 2020
tree: https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git for-next
head: 42dfec0984d6c084a33ec7997b2b792fd0fc628c
commit: 42dfec0984d6c084a33ec7997b2b792fd0fc628c [30/30] dm bufio: implement discard
config: x86_64-rhel (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
git checkout 42dfec0984d6c084a33ec7997b2b792fd0fc628c
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp at intel.com>
All errors (new ones prefixed by >>):
drivers/md/dm-bufio.c: In function 'dm_bufio_issue_discard':
>> drivers/md/dm-bufio.c:1342:13: error: implicit declaration of function 'block_to_sector'; did you mean 'blk_rq_sectors'? [-Werror=implicit-function-declaration]
.sector = block_to_sector(c, block),
^~~~~~~~~~~~~~~
blk_rq_sectors
cc1: some warnings being treated as errors
vim +1342 drivers/md/dm-bufio.c
1327
1328 /*
1329 * Use dm-io to send a discard request to flush the device.
1330 */
1331 int dm_bufio_issue_discard(struct dm_bufio_client *c, sector_t block, sector_t count)
1332 {
1333 struct dm_io_request io_req = {
1334 .bi_op = REQ_OP_DISCARD,
1335 .bi_op_flags = REQ_SYNC,
1336 .mem.type = DM_IO_KMEM,
1337 .mem.ptr.addr = NULL,
1338 .client = c->dm_io,
1339 };
1340 struct dm_io_region io_reg = {
1341 .bdev = c->bdev,
> 1342 .sector = block_to_sector(c, block),
1343 .count = block_to_sector(c, count),
1344 };
1345
1346 BUG_ON(dm_bufio_in_request());
1347
1348 return dm_io(&io_req, 1, &io_reg, NULL);
1349 }
1350 EXPORT_SYMBOL_GPL(dm_bufio_issue_discard);
1351
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 44621 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20200425/b33890da/attachment.gz>
More information about the dm-devel
mailing list