kunit: remove unused structure definition
PATCH 1/1 kunit: remove unused structure definition
remove unused string_stream_alloc_context structure definition.
Signed-off-by YoungJun.park <[email protected]>
--- lib/kunit/string-stream.c | 5 ----- 1 file changed, 5 deletions(-)
lib/kunit/string-stream.c +0 -5
@@ -131,11 +131,6 @@ bool string_stream_is_empty(struct string_stream *stream)return list_empty (&stream->fragments); } -struct string_stream_alloc_context { -struct kunit *test; -gfp_t gfp; -}; -struct string_stream *alloc_string_stream (struct kunit *test,gfp_t gfp) {struct string_stream *stream;
Signature · 1 line
2.25.1
Quoted 5 lines · YoungJun.park
remove unused
string_stream_alloc_contextstructure definition.Signed-off-by YoungJun.park <[email protected]>---
Thanks for catching this! It looks like we remembered to get rid of the related struct string_stream_fragment_alloc_context, but missed this one.
Reviewed-by David Gow <[email protected]>
Fixes 78b1c6584fce ("kunit: string-stream: Simplify resource use")
Cheers,
-- David
Quoted 22 lines
lib/kunit/string-stream.c | 5 ----- 1 file changed, 5 deletions(-)lib/kunit/string-stream.c +0
-6@@ -131,11 +131,6 @@ bool string_stream_is_empty(struct string_stream *stream)return list_empty (&stream->fragments); } -struct string_stream_alloc_context { -struct kunit *test; -gfp_t gfp; -}; -struct string_stream *alloc_string_stream (struct kunit *test,gfp_t gfp) {struct string_stream *stream; --2.25.1