Skip to content

Commit 6989808

Browse files
Tobin C. HardingShuah Khan
authored andcommitted
lib/test_printf: Add empty module_exit function
Currently the test_printf module does not have an exit function, this prevents the module from being unloaded. If we cannot unload the module we cannot run the tests a second time. Add an empty exit function. Acked-by: Kees Cook <[email protected]> Signed-off-by: Tobin C. Harding <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 6f9e64b commit 6989808

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/test_printf.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,5 +615,11 @@ test_printf_init(void)
615615

616616
module_init(test_printf_init);
617617

618+
static void __exit test_printf_exit(void)
619+
{
620+
}
621+
622+
module_exit(test_printf_exit);
623+
618624
MODULE_AUTHOR("Rasmus Villemoes <[email protected]>");
619625
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)