public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
* remove the bi_inline_vecs field struct bio
@ 2025-09-08 10:56 Christoph Hellwig
  2025-09-08 10:56 ` [PATCH 1/2] block: add a bio_init_inline helper Christoph Hellwig
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Christoph Hellwig @ 2025-09-08 10:56 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-block

Hi Jens,

the bi_inline_vecs causes sparse to warn when a bio is embedded into a
structure, but not the last member.   This is a bit annoying but
probably not a big.  But it can be easily fixed by just removing the
member and doing pointer arithmetics in a helper, so do that.

Diffstat:
 block/bio.c                        |   10 +++++++---
 block/blk-crypto-fallback.c        |    3 +--
 block/blk-map.c                    |    8 ++++----
 drivers/md/bcache/debug.c          |    3 +--
 drivers/md/bcache/io.c             |    3 +--
 drivers/md/bcache/journal.c        |    2 +-
 drivers/md/bcache/movinggc.c       |    8 ++++----
 drivers/md/bcache/super.c          |    2 +-
 drivers/md/bcache/writeback.c      |    8 ++++----
 drivers/md/dm-bufio.c              |    2 +-
 drivers/md/dm-flakey.c             |    2 +-
 drivers/md/dm-vdo/vio.c            |    2 +-
 drivers/md/raid1.c                 |    2 +-
 drivers/md/raid10.c                |    4 ++--
 drivers/target/target_core_pscsi.c |    2 +-
 fs/bcachefs/btree_io.c             |    2 +-
 fs/bcachefs/data_update.h          |    1 -
 fs/bcachefs/journal.c              |    6 +++---
 fs/bcachefs/journal_io.c           |    2 +-
 fs/bcachefs/super-io.c             |    2 +-
 fs/squashfs/block.c                |    2 +-
 include/linux/bio.h                |    5 +++++
 include/linux/blk_types.h          |   12 +++++-------
 23 files changed, 48 insertions(+), 45 deletions(-)

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2025-09-11  6:13 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-08 10:56 remove the bi_inline_vecs field struct bio Christoph Hellwig
2025-09-08 10:56 ` [PATCH 1/2] block: add a bio_init_inline helper Christoph Hellwig
2025-09-09  8:34   ` Yu Kuai
2025-09-09  8:43   ` John Garry
2025-09-11  6:10     ` Christoph Hellwig
2025-09-08 10:56 ` [PATCH 2/2] block: remove the bi_inline_vecs variable sized array from struct bio Christoph Hellwig
2025-09-09  8:16   ` John Garry
2025-09-09  8:40     ` Yu Kuai
2025-09-09  8:55       ` John Garry
2025-09-09  9:10         ` Yu Kuai
2025-09-11  6:12       ` Christoph Hellwig
2025-09-11  6:07     ` Christoph Hellwig
2025-09-09 13:32 ` remove the bi_inline_vecs field " Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox