Commit acdd052a285a7b4cc7da4fa7d34ef9fd0a67b2f8

Authored by Hannes Eder
Committed by Linus Torvalds
1 parent e0f7ad5f4f

init/main.c: fix sparse warnings: context imbalance

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

Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

... ... @@ -793,6 +793,7 @@
793 793 * makes it inline to init() and it becomes part of init.text section
794 794 */
795 795 static noinline int init_post(void)
  796 + __releases(kernel_lock)
796 797 {
797 798 /* need to finish all async __init code before freeing the memory */
798 799 async_synchronize_full();