tree:
git://git.infradead.org/users/hch/block.git block-kill-bd_inode
head: ffeb1c3218d3511f9972cc09dfe37a29c0da40cb
commit: 94e469f1d601fda9a5fdb933b4bbaaab11c85e5d [29/40] udf: use sb_bdev_nr_blocks
config: x86_64-randconfig-a015-20211012 (attached as .config)
compiler: clang version 14.0.0 (
https://github.com/llvm/llvm-project
c3dcf39554dbea780d6cb7e12239451ba47a2668)
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 block-kill-bd_inode
git checkout 94e469f1d601fda9a5fdb933b4bbaaab11c85e5d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> fs/udf/lowlevel.c:59:30: error: incompatible pointer types
passing 'struct block_device *' to parameter of type 'struct super_block
*' [-Werror,-Wincompatible-pointer-types]
lblock =
sb_bdev_nr_blocks(bdev);
^~~~
include/linux/genhd.h:248:57: note: passing argument to parameter 'sb' here
static inline u64 sb_bdev_nr_blocks(struct super_block *sb)
^
1 error generated.
vim +59 fs/udf/lowlevel.c
47
48 unsigned long udf_get_last_block(struct super_block *sb)
49 {
50 struct block_device *bdev = sb->s_bdev;
51 struct cdrom_device_info *cdi = disk_to_cdi(bdev->bd_disk);
52 unsigned long lblock = 0;
53
54 /*
55 * The cdrom layer call failed or returned obviously bogus value?
56 * Try using the device size...
57 */
58 if (!cdi || cdrom_get_last_written(cdi, &lblock) || lblock == 0)
59 lblock = sb_bdev_nr_blocks(bdev);
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org