]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
lib/test_printf: Add empty module_exit function
authorTobin C. Harding <tobin@kernel.org>
Fri, 5 Apr 2019 01:58:54 +0000 (12:58 +1100)
committerShuah Khan <shuah@kernel.org>
Mon, 8 Apr 2019 22:18:21 +0000 (16:18 -0600)
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 <keescook@chromium.org>
Signed-off-by: Tobin C. Harding <tobin@kernel.org>
Signed-off-by: Shuah Khan <shuah@kernel.org>
lib/test_printf.c

index 659b6cc0d483e3018a3b511bb53d714ee116cbcb..601e8519319a0800ba4d58673775df9b03c043df 100644 (file)
@@ -615,5 +615,11 @@ test_printf_init(void)
 
 module_init(test_printf_init);
 
+static void __exit test_printf_exit(void)
+{
+}
+
+module_exit(test_printf_exit);
+
 MODULE_AUTHOR("Rasmus Villemoes <linux@rasmusvillemoes.dk>");
 MODULE_LICENSE("GPL");