The Wire · Showcase
KUNIT WARNING SUPPRESSIONS BROKEN WHEN BUILT AS MODULE
By RepoJournal · Filed · About Linux
Kernel testing infrastructure loses the ability to suppress warnings in 7.2-rc4 when kunit loads as a module instead of built-in, breaking test validation across the board.
The kunit fix [1] addresses a critical gap where lib/bug.c only builds warning suppression code when CONFIG_KUNIT is compiled in, leaving modular builds without the capability entirely. This isn't a new feature regression - it's an existing stub that was never wired up for the tristate case, which means any test harness relying on these suppressions silently fails to work. In parallel, two kselftest fixes [2] land for ftrace and tracing: the add_remove_fprobe_module test now correctly reads enabled_func state, and trigger-hist-poll.tc switches to sched_process_exit for more reliable process tracking. These are repair work on the testing layer itself, not kernel bugs, but they matter because broken tests hide real problems downstream.
Action items
- → Review kunit module loads in your test pipeline - warning suppressions may be silently broken torvalds/linux [immediate]
- → Rebuild ftrace selftests to pick up enabled_func fix if you're tracking fprobe module behavior torvalds/linux [plan]
References
- [1] Merge tag 'linux_kselftest-kunit-fixes-7.2-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest torvalds/linux
- [2] Merge tag 'linux_kselftest-fixes-7.2-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest torvalds/linux