CC: [email protected]
CC: [email protected]
TO: Christoph Hellwig <[email protected]>
CC: Jan Kara <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs.git 
generic_block_fiemap_removal
head:   8f04e4d9e612244a7fea6e3db4c5f117784212e3
commit: 9432c8ae9f99993c886a7a5b4b99b8e9af491183 [3/4] hpfs: use iomap_fiemap 
to implement ->fiemap
:::::: branch date: 14 hours ago
:::::: commit date: 14 hours ago
config: x86_64-randconfig-m001-20210726 (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.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/hpfs/file.c:150 hpfs_iomap_begin() warn: should '1 << blkbits' be a 64 bit 
type?

vim +150 fs/hpfs/file.c

^1da177e4c3f41 Linus Torvalds    2005-04-16  119  
9432c8ae9f9999 Christoph Hellwig 2021-07-20  120  static int 
hpfs_iomap_begin(struct inode *inode, loff_t offset, loff_t length,
9432c8ae9f9999 Christoph Hellwig 2021-07-20  121                unsigned flags, 
struct iomap *iomap, struct iomap *srcmap)
9432c8ae9f9999 Christoph Hellwig 2021-07-20  122  {
9432c8ae9f9999 Christoph Hellwig 2021-07-20  123        struct super_block *sb 
= inode->i_sb;
9432c8ae9f9999 Christoph Hellwig 2021-07-20  124        unsigned int blkbits = 
inode->i_blkbits;
9432c8ae9f9999 Christoph Hellwig 2021-07-20  125        unsigned int n_secs;
9432c8ae9f9999 Christoph Hellwig 2021-07-20  126        secno s;
9432c8ae9f9999 Christoph Hellwig 2021-07-20  127  
9432c8ae9f9999 Christoph Hellwig 2021-07-20  128        if (WARN_ON_ONCE(flags 
& (IOMAP_WRITE | IOMAP_ZERO)))
9432c8ae9f9999 Christoph Hellwig 2021-07-20  129                return -EINVAL;
9432c8ae9f9999 Christoph Hellwig 2021-07-20  130  
9432c8ae9f9999 Christoph Hellwig 2021-07-20  131        iomap->bdev = 
inode->i_sb->s_bdev;
9432c8ae9f9999 Christoph Hellwig 2021-07-20  132        iomap->offset = offset;
9432c8ae9f9999 Christoph Hellwig 2021-07-20  133  
9432c8ae9f9999 Christoph Hellwig 2021-07-20  134        hpfs_lock(sb);
9432c8ae9f9999 Christoph Hellwig 2021-07-20  135        s = hpfs_bmap(inode, 
offset >> blkbits, &n_secs);
9432c8ae9f9999 Christoph Hellwig 2021-07-20  136        if (s) {
9432c8ae9f9999 Christoph Hellwig 2021-07-20  137                n_secs = 
hpfs_search_hotfix_map_for_range(sb, s,
9432c8ae9f9999 Christoph Hellwig 2021-07-20  138                                
min_t(loff_t, n_secs, length));
9432c8ae9f9999 Christoph Hellwig 2021-07-20  139                if 
(unlikely(!n_secs)) {
9432c8ae9f9999 Christoph Hellwig 2021-07-20  140                        s = 
hpfs_search_hotfix_map(sb, s);
9432c8ae9f9999 Christoph Hellwig 2021-07-20  141                        n_secs 
= 1;
9432c8ae9f9999 Christoph Hellwig 2021-07-20  142                }
9432c8ae9f9999 Christoph Hellwig 2021-07-20  143                iomap->type = 
IOMAP_MAPPED;
9432c8ae9f9999 Christoph Hellwig 2021-07-20  144                iomap->flags = 
IOMAP_F_MERGED;
9432c8ae9f9999 Christoph Hellwig 2021-07-20  145                iomap->addr = 
(u64)s << blkbits;
9432c8ae9f9999 Christoph Hellwig 2021-07-20  146                iomap->length = 
(u64)n_secs << blkbits;
9432c8ae9f9999 Christoph Hellwig 2021-07-20  147        } else {
9432c8ae9f9999 Christoph Hellwig 2021-07-20  148                iomap->type = 
IOMAP_HOLE;
9432c8ae9f9999 Christoph Hellwig 2021-07-20  149                iomap->addr = 
IOMAP_NULL_ADDR;
9432c8ae9f9999 Christoph Hellwig 2021-07-20 @150                iomap->length = 
1 << blkbits;
9432c8ae9f9999 Christoph Hellwig 2021-07-20  151        }
9432c8ae9f9999 Christoph Hellwig 2021-07-20  152  
9432c8ae9f9999 Christoph Hellwig 2021-07-20  153        hpfs_unlock(sb);
9432c8ae9f9999 Christoph Hellwig 2021-07-20  154        return 0;
9432c8ae9f9999 Christoph Hellwig 2021-07-20  155  }
9432c8ae9f9999 Christoph Hellwig 2021-07-20  156  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to