kunit: drop test pointer in string_stream_fragment
authorDaniel Latypov <dlatypov@google.com>
Fri, 22 Jul 2022 17:15:31 +0000 (17:15 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 7 Oct 2022 16:15:33 +0000 (10:15 -0600)
commit4db4598b5ed8fc26f5fd9312623a9ec5cebbe74a
treec92601ee1d58647caa2f88d3f7407fee5952f2f9
parent78b1c6584fcedcf2d9687a4455c461859094cf04
kunit: drop test pointer in string_stream_fragment

We already store the `struct kunit *test` in the string_stream object
itself, so we need don't need to store a copy of this pointer in every
fragment in the stream.

Drop it, getting string_stream_fragment down the bare minimum: a
list_head and the `char *` with the actual fragment.

Signed-off-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
lib/kunit/string-stream.c
lib/kunit/string-stream.h