diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2024-12-18 21:23:06 +0300 |
---|---|---|
committer | Boqun Feng <boqun.feng@gmail.com> | 2025-02-05 18:14:39 +0300 |
commit | 7acc2d90151fe6f5d8409df44e10cd24a0296e9f (patch) | |
tree | 4028ea84e0f59c4c95fb4d78380c0baa052b516e /rust/helpers/helpers.c | |
parent | 65e6ff0f31184bd9ce01c7bfef28558e6b70f96a (diff) | |
download | linux-7acc2d90151fe6f5d8409df44e10cd24a0296e9f.tar.xz |
rcutorture: Make cur_ops->format_gp_seqs take buffer length
The Tree and Tiny implementations of rcutorture_format_gp_seqs() use
hard-coded constants for the length of the buffer that they format into.
This is of course an accident waiting to happen, so this commit therefore
makes them take a length argument. The rcutorture calling code uses
ARRAY_SIZE() to safely compute this new argument.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions