kunit fixes update for Linux 6.18-rc4
Shuah Khan
maintainerHi Linus,
Please pull the following kunit fixes update for Linux 6.18-rc4.
Fixes log overwrite in param_tests and fixes incorrect cast of priv pointer in test_dev_action(). Updates email address for Rae Moar in MAINTAINERS KUnit entry.
diff is attached.
thanks,
-- Shuah
----------------------------------------------------------------
The following changes since commit 3a8660878839faadb4f1a6dd72c3179c1df56787:
Linux 6.18-rc1 (2025-10-12 13:42:36 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest tags/linux_kselftest-kunit-fixes-6.18-rc4
for you to fetch changes up to f3903ec76ae6afcdba0347681d1dda005fb145cd:
MAINTAINERS: Update KUnit email address for Rae Moar (2025-10-29 14:57:54 -0600)
----------------------------------------------------------------
linux_kselftest-kunit-fixes-6.18-rc4
Fixes log overwrite in param_tests and fixes incorrect cast of priv pointer in test_dev_action(). Updates email address for Rae Moar in MAINTAINERS KUnit entry.
----------------------------------------------------------------
Carlos Llamas (1):
kunit: prevent log overwrite in param_tests
Florian Schmaus (1):
kunit: test_dev_action: Correctly cast 'priv' pointer to long*
Rae Moar (1):
MAINTAINERS: Update KUnit email address for Rae Moar
.mailmap | 1 + MAINTAINERS | 2 +- lib/kunit/kunit-test.c | 2 +- lib/kunit/test.c | 3 ++- 4 files changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------
.mailmap +1 -0
@@ -642,6 +642,7 @@ Qais Yousef <[email protected]> <[email protected]> Quentin Monnet <[email protected]> <[email protected]> Quentin Monnet <[email protected]> <[email protected]> Quentin Perret <[email protected]> <[email protected]> +Rae Moar <[email protected]> <[email protected]> Rafael J. Wysocki <[email protected]> <[email protected]> Rajeev Nandan <[email protected]> <[email protected]> Rajendra Nayak <[email protected]> <[email protected]>
MAINTAINERS +1 -1
@@ -13601,7 +13601,7 @@ F: fs/smb/server/ KERNEL UNIT TESTING FRAMEWORK (KUnit) M: Brendan Higgins <[email protected]> M: David Gow <[email protected]> -R: Rae Moar <[email protected]> +R: Rae Moar <[email protected]> L: [email protected] L: [email protected] S: Maintained
lib/kunit/kunit-test.c +1 -1
@@ -739,7 +739,7 @@ static struct kunit_case kunit_current_test_cases[] = {static void test_dev_action (void *priv) { - *(void **)priv = (void *)1 ; + *(long *)priv =1 ; }static void kunit_device_test (struct kunit *test)
lib/kunit/test.c +2 -1
@@ -745,7 +745,8 @@ int kunit_run_tests(struct kunit_suite *suite) .param_index = ++test.param_index, .parent = &test, }; -kunit_init_test (¶m_test, test_case->name, test_case->log); +kunit_init_test (¶m_test, test_case->name,NULL ); + param_test.log = test_case->log;kunit_run_case_catch_errors (suite, test_case, ¶m_test);if (param_desc[0 ] =='\0' ) {
The pull request you sent on Thu, 30 Oct 2025 14:23:27 -0600:
The pull request you sent on Thu, 30 Oct 2025 14:23:27 -0600:
Quoted 1 line
git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftesttags/linux_kselftest-kunit-fixes-6.18-rc4
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/1806838686ef74cde74e590d13984dec7c0233d6
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html