diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2024-10-26 17:47:04 +0200 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-12-21 01:36:15 -0500 |
| commit | 901ff6555ba02dd917aa65b1105c9715e25dc994 (patch) | |
| tree | ab1b401f6122c64ad37e3cc3d3785c9d16da3001 /tools/perf/scripts/python/syscall-counts.py | |
| parent | ac9826f14739023bccf1345e6e4ddb0461fa9a2e (diff) | |
bcachefs: Annotate struct bucket_gens with __counted_by()
Add the __counted_by compiler attribute to the flexible array member b
to improve access bounds-checking via CONFIG_UBSAN_BOUNDS and
CONFIG_FORTIFY_SOURCE.
Use struct_size() to calculate the number of bytes to be allocated.
Update bucket_gens->nbuckets and bucket_gens->nbuckets_minus_first when
resizing.
Compile-tested only.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
