diff options
author | Hannes Eder <hannes@hanneseder.net> | 2009-03-31 18:23:50 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-01 11:59:18 -0400 |
commit | acdd052a285a7b4cc7da4fa7d34ef9fd0a67b2f8 (patch) | |
tree | 4fc380d7556327cb65ec8441504f90df85a96cd4 | |
parent | e0f7ad5f4f5056b20914a35d31abcf29036ca364 (diff) |
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>
-rw-r--r-- | init/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/init/main.c b/init/main.c index d6b388fbffa6..07c8658ffca5 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -793,6 +793,7 @@ static void run_init_process(char *init_filename) | |||
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(); |