From: kernel test robot <lkp@intel.com>
To: Kent Overstreet <kent.overstreet@linux.dev>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Kent Overstreet <kent.overstreet@linux.dev>
Subject: [bcachefs:master /575] fs/bcachefs/sb/io.c:238:23: error: call to undeclared function 'bio_inline_vecs'; ISO C99 and later do not support implicit function declarations
Date: Thu, 16 Oct 2025 05:29:02 +0800 [thread overview]
Message-ID: <202510160526.gaQGq4Nb-lkp@intel.com> (raw)
tree: https://evilpiepirate.org/git/bcachefs.git master
head: bb35ade3e8bb7af67734b746f416598002822df8
commit: caffe5f36f39ef62d58383b77dfdce931104f8c2 [/575] bcachefs: Compatibility with v6.18
config: x86_64-buildonly-randconfig-001-20251016 (https://download.01.org/0day-ci/archive/20251016/202510160526.gaQGq4Nb-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251016/202510160526.gaQGq4Nb-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202510160526.gaQGq4Nb-lkp@intel.com/
Note: the bcachefs/master HEAD bb35ade3e8bb7af67734b746f416598002822df8 builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
>> fs/bcachefs/sb/io.c:238:23: error: call to undeclared function 'bio_inline_vecs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
238 | bio_init(bio, NULL, bio_inline_vecs(bio), nr_bvecs, 0);
| ^
>> fs/bcachefs/sb/io.c:238:23: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'struct bio_vec *' [-Wint-conversion]
238 | bio_init(bio, NULL, bio_inline_vecs(bio), nr_bvecs, 0);
| ^~~~~~~~~~~~~~~~~~~~
include/linux/bio.h:406:75: note: passing argument to parameter 'table' here
406 | void bio_init(struct bio *bio, struct block_device *bdev, struct bio_vec *table,
| ^
2 errors generated.
--
>> fs/bcachefs/journal/read.c:1083:36: error: call to undeclared function 'bio_inline_vecs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1083 | bio_init(bio, ca->disk_sb.bdev, bio_inline_vecs(bio), nr_bvecs, REQ_OP_READ);
| ^
>> fs/bcachefs/journal/read.c:1083:36: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'struct bio_vec *' [-Wint-conversion]
1083 | bio_init(bio, ca->disk_sb.bdev, bio_inline_vecs(bio), nr_bvecs, REQ_OP_READ);
| ^~~~~~~~~~~~~~~~~~~~
include/linux/bio.h:406:75: note: passing argument to parameter 'table' here
406 | void bio_init(struct bio *bio, struct block_device *bdev, struct bio_vec *table,
| ^
2 errors generated.
--
>> fs/bcachefs/journal/init.c:543:36: error: call to undeclared function 'bio_inline_vecs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
543 | bio_init(&ja->bio[i]->bio, NULL, bio_inline_vecs(&ja->bio[i]->bio), nr_bvecs, 0);
| ^
>> fs/bcachefs/journal/init.c:543:36: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'struct bio_vec *' [-Wint-conversion]
543 | bio_init(&ja->bio[i]->bio, NULL, bio_inline_vecs(&ja->bio[i]->bio), nr_bvecs, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/bio.h:406:75: note: passing argument to parameter 'table' here
406 | void bio_init(struct bio *bio, struct block_device *bdev, struct bio_vec *table,
| ^
2 errors generated.
vim +/bio_inline_vecs +238 fs/bcachefs/sb/io.c
190
191 int bch2_sb_realloc(struct bch_sb_handle *sb, unsigned u64s)
192 {
193 size_t new_bytes = __vstruct_bytes(struct bch_sb, u64s);
194 size_t new_buffer_size;
195 struct bch_sb *new_sb;
196 struct bio *bio;
197
198 if (sb->bdev)
199 new_bytes = max_t(size_t, new_bytes, bdev_logical_block_size(sb->bdev));
200
201 new_buffer_size = roundup_pow_of_two(new_bytes);
202
203 if (sb->sb && sb->buffer_size >= new_buffer_size)
204 return 0;
205
206 if (sb->sb && sb->have_layout) {
207 u64 max_bytes = 512 << sb->sb->layout.sb_max_size_bits;
208
209 if (new_bytes > max_bytes) {
210 CLASS(printbuf, buf)();
211
212 prt_bdevname(&buf, sb->bdev);
213 prt_printf(&buf, ": superblock too big: want %zu but have %llu", new_bytes, max_bytes);
214 pr_err("%s", buf.buf);
215 return -BCH_ERR_ENOSPC_sb;
216 }
217 }
218
219 if (sb->buffer_size >= new_buffer_size && sb->sb)
220 return 0;
221
222 if (dynamic_fault("bcachefs:add:super_realloc"))
223 return -BCH_ERR_ENOMEM_sb_realloc_injected;
224
225 new_sb = krealloc(sb->sb, new_buffer_size, GFP_NOFS|__GFP_ZERO);
226 if (!new_sb)
227 return -BCH_ERR_ENOMEM_sb_buf_realloc;
228
229 sb->sb = new_sb;
230
231 if (sb->have_bio) {
232 unsigned nr_bvecs = buf_pages(sb->sb, new_buffer_size);
233
234 bio = bio_kmalloc(nr_bvecs, GFP_KERNEL);
235 if (!bio)
236 return -BCH_ERR_ENOMEM_sb_bio_realloc;
237
> 238 bio_init(bio, NULL, bio_inline_vecs(bio), nr_bvecs, 0);
239
240 kfree(sb->bio);
241 sb->bio = bio;
242 }
243
244 sb->buffer_size = new_buffer_size;
245
246 return 0;
247 }
248
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-10-15 21:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202510160526.gaQGq4Nb-lkp@intel.com \
--to=lkp@intel.com \
--cc=kent.overstreet@linux.dev \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox