The module is never loaded successfully. Therefore, it'll never be unloaded and we can remove the exit function.
Showing the changes to lib/test_vmalloc.c (1 of 1 file). Show all
Unified · Split
| @@ -600,12 +600,7 @@ static int vmalloc_test_init(void) · 599 unmodified lines | |||
| 600 | return -EAGAIN; /* Fail will directly unload the module */ | 600 | return -EAGAIN; /* Fail will directly unload the module */ |
| 601 | } | 601 | } |
| 602 | 602 | ||
| 603 | static void vmalloc_test_exit(void) | ||
| 604 | { | ||
| 605 | } | ||
| 606 | |||
| 607 | module_init(vmalloc_test_init) | 603 | module_init(vmalloc_test_init) |
| 608 | module_exit(vmalloc_test_exit) | ||
| 609 | 604 | ||
| 610 | MODULE_LICENSE("GPL"); | 605 | MODULE_LICENSE("GPL"); |
| 611 | MODULE_AUTHOR("Uladzislau Rezki"); | 606 | MODULE_AUTHOR("Uladzislau Rezki"); |