aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorHannes Eder <hannes@hanneseder.net>2009-03-31 15:23:50 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2009-04-01 08:59:18 -0700
commitacdd052a285a7b4cc7da4fa7d34ef9fd0a67b2f8 (patch)
tree4fc380d7556327cb65ec8441504f90df85a96cd4 /init
parente0f7ad5f4f5056b20914a35d31abcf29036ca364 (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>
Diffstat (limited to 'init')
-rw-r--r--init/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/init/main.c b/init/main.c
index d6b388fbffa..07c8658ffca 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();