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 <[email protected]>

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/[email protected]

Attachment: .config.gz
Description: application/gzip

--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel

Reply via email to