[lkml]   [2022]   [May]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v7 04/25] kunit: take `kunit_assert` as `const`
On Sun, May 22, 2022 at 7:03 PM Miguel Ojeda <> wrote:
> The `kunit_do_failed_assertion` function passes its
> `struct kunit_assert` argument to `kunit_fail`. This one,
> in turn, calls its `format` field passing the assert again
> as a `const` pointer.
> Therefore, the whole chain may be made `const`.
> Reviewed-by: Daniel Latypov <>
> Reviewed-by: Brendan Higgins <>
> Signed-off-by: Miguel Ojeda <>
> ---
> This is a prerequisite patch, independently submitted at:

FYI, we'd asked Shuah to pick this patch up in her "kunit" branch.
It's applied here:

It had previously seemed unclear if this series could make it for the
5.19 merge window (but it now looks like there's interest in trying it
out early on).


 \ /
  Last update: 2022-05-23 19:33    [W:0.209 / U:0.660 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site