diff options
author | Hannes Eder <hannes@hanneseder.net> | 2009-04-01 00:23:50 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-01 17:59:18 +0200 |
commit | acdd052a285a7b4cc7da4fa7d34ef9fd0a67b2f8 (patch) | |
tree | 4fc380d7556327cb65ec8441504f90df85a96cd4 /init | |
parent | bcm47xx: fix GPIO API return codes (diff) | |
download | linux-acdd052a285a7b4cc7da4fa7d34ef9fd0a67b2f8.tar.xz linux-acdd052a285a7b4cc7da4fa7d34ef9fd0a67b2f8.zip |
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>
Diffstat (limited to 'init')
-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) * makes it inline to init() and it becomes part of init.text section */ static noinline int init_post(void) + __releases(kernel_lock) { /* need to finish all async __init code before freeing the memory */ async_synchronize_full(); |