From: Tobin C. Harding Date: Fri, 5 Apr 2019 01:58:54 +0000 (+1100) Subject: lib/test_printf: Add empty module_exit function X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6989808ee7636188cc091224bc76ab8e1696088a;p=linux.git 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 Signed-off-by: Tobin C. Harding Signed-off-by: Shuah Khan --- diff --git a/lib/test_printf.c b/lib/test_printf.c index 659b6cc0d483e..601e8519319a0 100644 --- a/lib/test_printf.c +++ b/lib/test_printf.c @@ -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 "); MODULE_LICENSE("GPL");