diff options
author | Tobin C. Harding <tobin@kernel.org> | 2019-04-04 21:58:54 -0400 |
---|---|---|
committer | Shuah Khan <shuah@kernel.org> | 2019-04-08 18:18:21 -0400 |
commit | 6989808ee7636188cc091224bc76ab8e1696088a (patch) | |
tree | b8e71fa759ffee5d236e6761d832f07b063b261f /lib/test_printf.c | |
parent | 6f9e64b0ff26aab12ae126e0fe274fbd5720fd91 (diff) |
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 <keescook@chromium.org>
Signed-off-by: Tobin C. Harding <tobin@kernel.org>
Signed-off-by: Shuah Khan <shuah@kernel.org>
Diffstat (limited to 'lib/test_printf.c')
-rw-r--r-- | lib/test_printf.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/test_printf.c b/lib/test_printf.c index 659b6cc0d483..601e8519319a 100644 --- a/lib/test_printf.c +++ b/lib/test_printf.c | |||
@@ -615,5 +615,11 @@ test_printf_init(void) | |||
615 | 615 | ||
616 | module_init(test_printf_init); | 616 | module_init(test_printf_init); |
617 | 617 | ||
618 | static void __exit test_printf_exit(void) | ||
619 | { | ||
620 | } | ||
621 | |||
622 | module_exit(test_printf_exit); | ||
623 | |||
618 | MODULE_AUTHOR("Rasmus Villemoes <linux@rasmusvillemoes.dk>"); | 624 | MODULE_AUTHOR("Rasmus Villemoes <linux@rasmusvillemoes.dk>"); |
619 | MODULE_LICENSE("GPL"); | 625 | MODULE_LICENSE("GPL"); |