]> git.ipfire.org Git - thirdparty/linux.git/commit
platform/wmi: string-kunit: Add missing oversized string test case
authorArmin Wolf <W_Armin@gmx.de>
Fri, 23 Jan 2026 21:15:37 +0000 (22:15 +0100)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 26 Jan 2026 14:03:18 +0000 (16:03 +0200)
commit5d4ae0bffb6eeada6dd16ba52150457ae96c3725
treeab4f7f2ae180216d499e6d66dcc505ff271343a1
parent8164a14b15008579801ba6ba3ae00d37ecc310e5
platform/wmi: string-kunit: Add missing oversized string test case

When compiling the WMI string kunit tests using llvm, the compiler
will issue a warning about "oversized_test_utf8_string" being unused.
This happens because the test case that was supposed to use said
variable was accidentally omitted when adding the kunit tests.

Fix this by adding the aforementioned test case.

Fixes: 0e1a8143e797 ("platform/wmi: Add kunit test for the string conversion code")
Reported-by: Nathan Chancellor <nathan@kernel.org>
Closes: https://lore.kernel.org/platform-driver-x86/20260122234521.GA413183@ax162/
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://patch.msgid.link/20260123211537.4448-1-W_Armin@gmx.de
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/wmi/tests/string_kunit.c