tree:
git://git.infradead.org/users/hch/block.git bio_alloc-cleanup
head: f033ae7a0e5d8529000f3760d24650e8c468fb65
commit: 41af664fdb39fe3a5cc1e2d6639795ee98efe514 [37/41] f2fs: return a f2fs_dev_info from
f2fs_target_device
config: hexagon-randconfig-r045-20220113
(
https://download.01.org/0day-ci/archive/20220115/202201151829.6khiENhN-lk...)
compiler: clang version 14.0.0 (
https://github.com/llvm/llvm-project
650fc40b6d8d9a5869b4fca525d5f237b0ee2803)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add hch-block
git://git.infradead.org/users/hch/block.git
git fetch --no-tags hch-block bio_alloc-cleanup
git checkout 41af664fdb39fe3a5cc1e2d6639795ee98efe514
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir
ARCH=hexagon SHELL=/bin/bash fs/f2fs/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
> fs/f2fs/segment.c:1864:6: warning: format specifies type
'long' but the argument has type 'int' [-Wformat]
di - sbi->devs, sbi->s_ndevs ? di->path : "",
^~~~~~~~~~~~~~
fs/f2fs/f2fs.h:2241:35: note: expanded from macro 'f2fs_err'
f2fs_printk(sbi, KERN_ERR fmt, ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
1 warning generated.
vim +1864 fs/f2fs/segment.c
1844
1845 #ifdef CONFIG_BLK_DEV_ZONED
1846 static int __f2fs_issue_discard_zone(struct f2fs_sb_info *sbi,
1847 struct block_device *bdev, block_t blkstart, block_t blklen)
1848 {
1849 sector_t sector, nr_sects;
1850 block_t lblkstart = blkstart;
1851 struct f2fs_dev_info *di = f2fs_target_device(sbi, blkstart);
1852
1853 if (f2fs_is_multi_device(sbi))
1854 blkstart -= di->start_blk;
1855
1856 /* For sequential zones, reset the zone write pointer */
1857 if (f2fs_blkz_is_seq(sbi, di, blkstart)) {
1858 sector = SECTOR_FROM_BLOCK(blkstart);
1859 nr_sects = SECTOR_FROM_BLOCK(blklen);
1860
1861 if (sector & (bdev_zone_sectors(bdev) - 1) ||
1862 nr_sects != bdev_zone_sectors(bdev)) {
1863 f2fs_err(sbi, "(%ld) %s: Unaligned zone reset attempted (block %x +
%x)",
1864 di - sbi->devs, sbi->s_ndevs ? di->path :
"",
1865 blkstart, blklen);
1866 return -EIO;
1867 }
1868 trace_f2fs_issue_reset_zone(bdev, blkstart);
1869 return blkdev_zone_mgmt(bdev, REQ_OP_ZONE_RESET,
1870 sector, nr_sects, GFP_NOFS);
1871 }
1872
1873 /* For conventional zones, use regular discard if supported */
1874 return __queue_discard_cmd(sbi, bdev, lblkstart, blklen);
1875 }
1876 #endif
1877
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org