[hch-block:blkdev.h-includes 16/16] fs/btrfs/extent_io.c:245:6: error: implicit declaration of function 'bioset_integrity_create'

From: kernel test robot
Date: Sun Jul 25 2021 - 08:02:00 EST


tree: git://git.infradead.org/users/hch/block.git blkdev.h-includes
head: db08f634bead64da6de80830782f3c339fc41b11
commit: db08f634bead64da6de80830782f3c339fc41b11 [16/16] block: move the integrity definitions from bio.h to blk-integrity.h
config: mips-randconfig-r006-20210725 (attached as .config)
compiler: mips64-linux-gcc (GCC) 10.3.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 blkdev.h-includes
git checkout db08f634bead64da6de80830782f3c339fc41b11
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=mips

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

fs/btrfs/extent_io.c: In function 'extent_io_init':
>> fs/btrfs/extent_io.c:245:6: error: implicit declaration of function 'bioset_integrity_create' [-Werror=implicit-function-declaration]
245 | if (bioset_integrity_create(&btrfs_bioset, BIO_POOL_SIZE))
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors


vim +/bioset_integrity_create +245 fs/btrfs/extent_io.c

d1310b2e0cd98e Chris Mason 2008-01-24 231
6f0d04f8e72e1c Josef Bacik 2019-09-23 232 int __init extent_io_init(void)
6f0d04f8e72e1c Josef Bacik 2019-09-23 233 {
837e197283199d David Sterba 2012-09-07 234 extent_buffer_cache = kmem_cache_create("btrfs_extent_buffer",
d1310b2e0cd98e Chris Mason 2008-01-24 235 sizeof(struct extent_buffer), 0,
fba4b697710eb2 Nikolay Borisov 2016-06-23 236 SLAB_MEM_SPREAD, NULL);
d1310b2e0cd98e Chris Mason 2008-01-24 237 if (!extent_buffer_cache)
6f0d04f8e72e1c Josef Bacik 2019-09-23 238 return -ENOMEM;
9be3395bcd4ad4 Chris Mason 2013-05-17 239
8ac9f7c1fd1d34 Kent Overstreet 2018-05-20 240 if (bioset_init(&btrfs_bioset, BIO_POOL_SIZE,
011067b05668b0 NeilBrown 2017-06-18 241 offsetof(struct btrfs_io_bio, bio),
8ac9f7c1fd1d34 Kent Overstreet 2018-05-20 242 BIOSET_NEED_BVECS))
9be3395bcd4ad4 Chris Mason 2013-05-17 243 goto free_buffer_cache;
b208c2f7ceafac Darrick J. Wong 2013-09-19 244
8ac9f7c1fd1d34 Kent Overstreet 2018-05-20 @245 if (bioset_integrity_create(&btrfs_bioset, BIO_POOL_SIZE))
b208c2f7ceafac Darrick J. Wong 2013-09-19 246 goto free_bioset;
b208c2f7ceafac Darrick J. Wong 2013-09-19 247
d1310b2e0cd98e Chris Mason 2008-01-24 248 return 0;
d1310b2e0cd98e Chris Mason 2008-01-24 249
b208c2f7ceafac Darrick J. Wong 2013-09-19 250 free_bioset:
8ac9f7c1fd1d34 Kent Overstreet 2018-05-20 251 bioset_exit(&btrfs_bioset);
b208c2f7ceafac Darrick J. Wong 2013-09-19 252
9be3395bcd4ad4 Chris Mason 2013-05-17 253 free_buffer_cache:
9be3395bcd4ad4 Chris Mason 2013-05-17 254 kmem_cache_destroy(extent_buffer_cache);
9be3395bcd4ad4 Chris Mason 2013-05-17 255 extent_buffer_cache = NULL;
6f0d04f8e72e1c Josef Bacik 2019-09-23 256 return -ENOMEM;
6f0d04f8e72e1c Josef Bacik 2019-09-23 257 }
9be3395bcd4ad4 Chris Mason 2013-05-17 258

:::::: The code at line 245 was first introduced by commit
:::::: 8ac9f7c1fd1d342e82ddf078425423b050652ba0 btrfs: convert to bioset_init()/mempool_init()

:::::: TO: Kent Overstreet <kent.overstreet@xxxxxxxxx>
:::::: CC: Jens Axboe <axboe@xxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip