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: mips-randconfig-r014-20211012 (attached as .config)
compiler: mips-linux-gcc (GCC) 11.2.0
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=gcc-11.2.0 make.cross ARCH=mips
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: In function 'udf_get_last_block':
> fs/udf/lowlevel.c:59:44: error: passing argument 1 of
'sb_bdev_nr_blocks' from incompatible pointer type
[-Werror=incompatible-pointer-types]
59 | lblock =
sb_bdev_nr_blocks(bdev);
| ^~~~
| |
| struct block_device *
In file included from include/linux/blkdev.h:6,
from fs/udf/lowlevel.c:22:
include/linux/genhd.h:248:57: note: expected 'struct super_block *' but
argument is of type 'struct block_device *'
248 | static inline u64 sb_bdev_nr_blocks(struct super_block *sb)
| ~~~~~~~~~~~~~~~~~~~~^~
cc1: some warnings being treated as errors
vim +/sb_bdev_nr_blocks +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