diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-10-30 16:51:14 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-10-30 16:51:14 -0800 |
commit | a4b13f2f90699df3585504798e20419535579a87 (patch) | |
tree | 0cd0899b4b9284c482255670f2c381fce1f6b4f0 /init | |
parent | 434a9cc6cfb1dd0ab2e42066552baf31dfad5798 (diff) | |
download | history-a4b13f2f90699df3585504798e20419535579a87.tar.gz |
Lock-annotate some kernel functions as an example of how it works.
In particular, a function that is called with a lock held, and
releases it only to re-acquire it needs to be annotated as such,
since otherwise sparse will complain about an unexpected unlock,
even though "globally" the lock is constant over the call.
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 e448aea6300090..4b20c9303bd4f7 100644 --- a/init/main.c +++ b/init/main.c @@ -441,6 +441,7 @@ static void __init smp_init(void) */ static void noinline rest_init(void) + __releases(kernel_lock) { kernel_thread(init, NULL, CLONE_FS | CLONE_SIGHAND); numa_default_policy(); |