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

tree:   git://git.infradead.org/users/hch/misc.git dax-block-cleanup
head:   85eeeba6accd7ba7457ab6c8905863a74458f063
commit: 565c95d7dd9faeed27050aa6bf4fd0d406016431 [9/29] dm-linear: add a 
linear_dax_pgoff helper
:::::: branch date: 10 days ago
:::::: commit date: 10 days ago
config: nios2-randconfig-m031-20211202 
(https://download.01.org/0day-ci/archive/20211209/[email protected]/config)
compiler: nios2-linux-gcc (GCC) 11.2.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:
drivers/md/dm-linear.c:169 linear_dax_pgoff() warn: should '*pgoff << (12 - 9)' 
be a 64 bit type?

vim +169 drivers/md/dm-linear.c

af4874e03ed82f Mike Snitzer      2009-06-22  164  
3d1cf7b80bd13c Christoph Hellwig 2021-10-15  165  #if IS_ENABLED(CONFIG_FS_DAX)
565c95d7dd9fae Christoph Hellwig 2021-10-15  166  static struct dax_device 
*linear_dax_pgoff(struct dm_target *ti, pgoff_t *pgoff)
565c95d7dd9fae Christoph Hellwig 2021-10-15  167  {
565c95d7dd9fae Christoph Hellwig 2021-10-15  168        struct linear_c *lc = 
ti->private;
565c95d7dd9fae Christoph Hellwig 2021-10-15 @169        sector_t sector = 
linear_map_sector(ti, *pgoff << PAGE_SECTORS_SHIFT);
565c95d7dd9fae Christoph Hellwig 2021-10-15  170  
565c95d7dd9fae Christoph Hellwig 2021-10-15  171        *pgoff = 
(get_start_sect(lc->dev->bdev) + sector) >> PAGE_SECTORS_SHIFT;
565c95d7dd9fae Christoph Hellwig 2021-10-15  172        return lc->dev->dax_dev;
565c95d7dd9fae Christoph Hellwig 2021-10-15  173  }
565c95d7dd9fae Christoph Hellwig 2021-10-15  174  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]
_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to