Impact: Attribute function 'init_post' with __releases(...). Fix these sparse warnings: init/main.c:805:21: warning: context imbalance in 'init_post' - unexpected unlock init/main.c:899:9: warning: context imbalance in 'kernel_init' - wrong count at exit
Showing the changes to init (1 of 1 file). Show all
Unified · Split
| @@ -793,6 +793,7 @@ static void run_init_process(char *init_filename) · 792 unmodified lines | |||
| 793 | * makes it inline to init() and it becomes part of init.text section | 793 | * makes it inline to init() and it becomes part of init.text section |
| 794 | */ | 794 | */ |
| 795 | static noinline int init_post(void) | 795 | static noinline int init_post(void) |
| 796 | __releases(kernel_lock) | ||
| 796 | { | 797 | { |
| 797 | /* need to finish all async __init code before freeing the memory */ | 798 | /* need to finish all async __init code before freeing the memory */ |
| 798 | async_synchronize_full(); | 799 | async_synchronize_full(); |