[PATCH 4/9] kcsan: test: Update parameter generator to new signature

David Gow davidgow at google.com
Sat Aug 2 09:44:45 UTC 2025


On Wed, 30 Jul 2025 at 03:37, Marie Zhussupova <marievic at google.com> wrote:
>
> This patch modifies `nthreads_gen_params` in kcsan_test.c
> to accept an additional `struct kunit *test` argument.
>
> Signed-off-by: Marie Zhussupova <marievic at google.com>
> ---

This is a pretty straightforward fix after patch 3. KCSAN folks, would
you prefer this kept as a separate patch, or squashed into the
previous one (so there's no commit where this is broken)?

Either way,
Reviewed-by: David Gow <davidgow at google.com>


-- David

>  kernel/kcsan/kcsan_test.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/kernel/kcsan/kcsan_test.c b/kernel/kcsan/kcsan_test.c
> index c2871180edcc..fc76648525ac 100644
> --- a/kernel/kcsan/kcsan_test.c
> +++ b/kernel/kcsan/kcsan_test.c
> @@ -1383,7 +1383,7 @@ static void test_atomic_builtins_missing_barrier(struct kunit *test)
>   * The thread counts are chosen to cover potentially interesting boundaries and
>   * corner cases (2 to 5), and then stress the system with larger counts.
>   */
> -static const void *nthreads_gen_params(const void *prev, char *desc)
> +static const void *nthreads_gen_params(struct kunit *test, const void *prev, char *desc)
>  {
>         long nthreads = (long)prev;
>
> --
> 2.50.1.552.g942d659e1b-goog
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5281 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20250802/bb483e32/attachment-0001.bin>


More information about the dri-devel mailing list