[PATCH] kunit: remove unused free_string_stream() declaration
From: Jiangshan Yi
Date: Tue Nov 17 2026 - 20:10:10 EST
free_string_stream() has never been implemented or called since its
declaration was added; the free counterpart of alloc_string_stream()
is string_stream_destroy(). Remove the dead declaration.
Signed-off-by: Jiangshan Yi <yijiangshan@xxxxxxxxxx>
---
lib/kunit/string-stream.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/lib/kunit/string-stream.h b/lib/kunit/string-stream.h
index 7be2450c7079..d0dede075df2 100644
--- a/lib/kunit/string-stream.h
+++ b/lib/kunit/string-stream.h
@@ -33,7 +33,6 @@ struct string_stream *kunit_alloc_string_stream(struct kunit *test, gfp_t gfp);
void kunit_free_string_stream(struct kunit *test, struct string_stream *stream);
struct string_stream *alloc_string_stream(gfp_t gfp);
-void free_string_stream(struct string_stream *stream);
int __printf(2, 3) string_stream_add(struct string_stream *stream,
const char *fmt, ...);
--
2.25.1