]> xenbits.xensource.com Git - mini-os.git/commit
mini-os: put sanity_check() under CONFIG_TEST
authorJuergen Gross <jgross@suse.com>
Tue, 30 Jul 2024 09:50:02 +0000 (11:50 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 30 Jul 2024 09:50:02 +0000 (11:50 +0200)
commitdc3b68bf37f401c98d598e37344a73a60a4a67e9
tree8f041e1e768beba1c65a391068795741db8c74b3
parent27782562cb0558ce651031b4921931c33e6f7c71
mini-os: put sanity_check() under CONFIG_TEST

Hide the sanity_check() function, as it is used nowhere. By putting it
under #ifdef CONFIG_TEST it will stay around, but it won't be
included in normal production builds.

Call sanity_check() from the periodic thread of the test app, causing
a sanity check every second.

Since any application linked with Mini-OS can't call sanity_check()
(there is no EXPORT_SYMBOL for it), there is zero chance of breaking
any use case.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
include/lib.h
mm.c
test.c