From: Martin Kaiser Date: Mon, 26 Feb 2024 19:11:58 +0000 (+0100) Subject: lib/test_vmalloc.c: drop empty exit function X-Git-Tag: v6.9-rc1~107^2~78 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e2c5bfebabaedbec8ca858b66f95f3a993428b0c;p=thirdparty%2Fkernel%2Flinux.git lib/test_vmalloc.c: drop empty exit function The module is never loaded successfully. Therefore, it'll never be unloaded and we can remove the exit function. Link: https://lkml.kernel.org/r/20240226191159.39509-3-martin@kaiser.cx Signed-off-by: Martin Kaiser Reviewed-by: Uladzislau Rezki (Sony) Signed-off-by: Andrew Morton --- diff --git a/lib/test_vmalloc.c b/lib/test_vmalloc.c index 191b6bd5dff94..d0c0cbe1913d7 100644 --- a/lib/test_vmalloc.c +++ b/lib/test_vmalloc.c @@ -600,12 +600,7 @@ static int vmalloc_test_init(void) return -EAGAIN; /* Fail will directly unload the module */ } -static void vmalloc_test_exit(void) -{ -} - module_init(vmalloc_test_init) -module_exit(vmalloc_test_exit) MODULE_LICENSE("GPL"); MODULE_AUTHOR("Uladzislau Rezki");