summaryrefslogtreecommitdiffstats
path: root/init/main.c
diff options
context:
space:
mode:
authorHannes Eder <hannes@hanneseder.net>2009-04-01 00:23:50 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2009-04-01 17:59:18 +0200
commitacdd052a285a7b4cc7da4fa7d34ef9fd0a67b2f8 (patch)
tree4fc380d7556327cb65ec8441504f90df85a96cd4 /init/main.c
parentbcm47xx: fix GPIO API return codes (diff)
downloadlinux-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/main.c')
-rw-r--r--init/main.c1
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();