CC: [email protected] CC: [email protected] TO: Andreas Gruenbacher <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git extents head: 2be930a4500aa49bc679f94514da56731b154bcb commit: bbbfb8a66e9346eb3a7d9dad14d410d9424c94a9 [3/6] gfs2: Move non-bitmap-specific functions to iomap.c :::::: branch date: 8 hours ago :::::: commit date: 35 hours ago config: i386-randconfig-m021-20210420 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> smatch warnings: fs/gfs2/iomap.c:539 gfs2_get_extent() warn: should '*extlen << blkbits' be a 64 bit type? fs/gfs2/iomap.c:560 gfs2_alloc_extent() warn: should '*extlen << blkbits' be a 64 bit type? vim +539 fs/gfs2/iomap.c bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 530 bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 531 int gfs2_get_extent(struct inode *inode, u64 lblock, u64 *dblock, bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 532 unsigned int *extlen) bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 533 { bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 534 unsigned int blkbits = inode->i_blkbits; bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 535 struct iomap iomap = { }; bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 536 unsigned int len; bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 537 int ret; bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 538 bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 @539 ret = gfs2_iomap_get(inode, lblock << blkbits, *extlen << blkbits, bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 540 &iomap); bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 541 if (ret) bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 542 return ret; bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 543 if (iomap.type != IOMAP_MAPPED) bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 544 return -EIO; bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 545 *dblock = iomap.addr >> blkbits; bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 546 len = iomap.length >> blkbits; bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 547 if (len < *extlen) bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 548 *extlen = len; bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 549 return 0; bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 550 } bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 551 bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 552 int gfs2_alloc_extent(struct inode *inode, u64 lblock, u64 *dblock, bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 553 unsigned int *extlen, bool *new) bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 554 { bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 555 unsigned int blkbits = inode->i_blkbits; bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 556 struct iomap iomap = { }; bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 557 unsigned int len; bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 558 int ret; bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 559 bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 @560 ret = gfs2_iomap_alloc(inode, lblock << blkbits, *extlen << blkbits, bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 561 &iomap); bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 562 if (ret) bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 563 return ret; bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 564 if (iomap.type != IOMAP_MAPPED) bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 565 return -EIO; bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 566 *dblock = iomap.addr >> blkbits; bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 567 len = iomap.length >> blkbits; bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 568 if (len < *extlen) bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 569 *extlen = len; bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 570 *new = iomap.flags & IOMAP_F_NEW; bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 571 return 0; bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 572 } bbbfb8a66e9346 Andreas Gruenbacher 2021-03-27 573 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected]
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
