[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202207091323.KEhcYltc-lkp@intel.com>
Date: Sat, 9 Jul 2022 13:29:02 +0800
From: kernel test robot <lkp@...el.com>
To: Pankaj Raghav <p.raghav@...sung.com>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org, Luis Chamberlain <mcgrof@...nel.org>,
Hannes Reinecke <hare@...e.de>
Subject: [mcgrof-next:20220707-dm-zoned-npo2 2/13] block/blk-core.c:564:28:
error: incompatible pointer types passing 'struct block_device *' to
parameter of type 'struct gendisk *'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20220707-dm-zoned-npo2
head: 3d1b6e41f76394610669e380da4f65bc5e7cf8ac
commit: 74b3d453820c74ad03aefe4d9ec44c27f6bffe00 [2/13] block: allow blk-zoned devices to have non-power-of-2 zone size
config: hexagon-randconfig-r041-20220707 (https://download.01.org/0day-ci/archive/20220709/202207091323.KEhcYltc-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 77a38f6839980bfac61babb40d83772c51427011)
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
# https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/commit/?id=74b3d453820c74ad03aefe4d9ec44c27f6bffe00
git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
git fetch --no-tags mcgrof-next 20220707-dm-zoned-npo2
git checkout 74b3d453820c74ad03aefe4d9ec44c27f6bffe00
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
>> block/blk-core.c:564:28: error: incompatible pointer types passing 'struct block_device *' to parameter of type 'struct gendisk *' [-Werror,-Wincompatible-pointer-types]
return bdev_is_zone_start(bio->bi_bdev, bio->bi_iter.bi_sector);
^~~~~~~~~~~~
include/linux/blkdev.h:772:55: note: passing argument to parameter 'disk' here
static inline bool bdev_is_zone_start(struct gendisk *disk, sector_t sec)
^
1 error generated.
vim +564 block/blk-core.c
561
562 static inline bool bio_sector_zone_start(struct bio *bio)
563 {
> 564 return bdev_is_zone_start(bio->bi_bdev, bio->bi_iter.bi_sector);
565 }
566
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists