linux/drivers/md/bcache
Gustavo A. R. Silva 699122b590 bcache: Avoid -Wflex-array-member-not-at-end warning
-Wflex-array-member-not-at-end was introduced in GCC-14, and we are
getting ready to enable it, globally.

Use the new TRAILING_OVERLAP() helper to fix the following warning:

drivers/md/bcache/bset.h:330:27: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end]

This helper creates a union between a flexible-array member (FAM) and a
set of MEMBERS that would otherwise follow it.

This overlays the trailing MEMBER struct btree_iter_set stack_data[MAX_BSETS];
onto the FAM struct btree_iter::data[], while keeping the FAM and the start
of MEMBER aligned.

The static_assert() ensures this alignment remains, and it's
intentionally placed immediately after the corresponding structures --no
blank line in between.

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Coly Li <colyli@fnnas.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2025-11-13 09:18:06 -07:00
..
Kconfig bcache: remove unnecessary select MIN_HEAP 2025-06-19 20:48:03 -07:00
Makefile bcache: move closures to lib/ 2023-10-19 14:47:33 -04:00
alloc.c bcache: reduce gc latency by processing less nodes and sleep less time 2025-11-13 09:18:06 -07:00
bcache.h bcache: reduce gc latency by processing less nodes and sleep less time 2025-11-13 09:18:06 -07:00
bcache_ondisk.h flexible-array transformations for 6.3-rc1 2023-02-25 12:53:42 -08:00
bset.c Revert "bcache: remove heap-related macros and switch to generic min_heap" 2025-06-19 20:48:03 -07:00
bset.h bcache: Avoid -Wflex-array-member-not-at-end warning 2025-11-13 09:18:06 -07:00
btree.c bcache: WQ_PERCPU added to alloc_workqueue users 2025-11-13 09:18:06 -07:00
btree.h Locking changes for v6.5: 2023-06-27 14:14:30 -07:00
debug.c block: add a bio_init_inline helper 2025-09-09 07:31:59 -06:00
debug.h
extents.c Revert "bcache: remove heap-related macros and switch to generic min_heap" 2025-06-19 20:48:03 -07:00
extents.h
features.c
features.h
io.c block: add a bio_init_inline helper 2025-09-09 07:31:59 -06:00
journal.c bcache: get rid of discard code from journal 2025-11-13 09:18:06 -07:00
journal.h bcache: get rid of discard code from journal 2025-11-13 09:18:06 -07:00
movinggc.c block: remove the bi_inline_vecs variable sized array from struct bio 2025-09-09 07:31:59 -06:00
request.c bcache: call force_wake_up_gc() if necessary in check_should_bypass() 2024-05-28 06:55:59 -06:00
request.h closures: CLOSURE_CALLBACK() to fix type punning 2023-11-24 00:29:58 -05:00
stats.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
stats.h bcache: Remove dead references to cache_readaheads 2023-06-15 07:30:11 -06:00
super.c bcache: WQ_PERCPU added to alloc_workqueue users 2025-11-13 09:18:06 -07:00
sysfs.c bcache: drop discard sysfs interface 2025-11-13 09:18:06 -07:00
sysfs.h bcache: make kobj_type structures constant 2023-06-15 07:30:11 -06:00
trace.c
util.c bcache: fix typo 2024-06-24 22:24:56 -07:00
util.h Revert "bcache: remove heap-related macros and switch to generic min_heap" 2025-06-19 20:48:03 -07:00
writeback.c bcache: WQ_PERCPU added to alloc_workqueue users 2025-11-13 09:18:06 -07:00
writeback.h