History

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

Hannes Eder committed 17 years ago

Commit acdd0521 parent e0f7ad51 file · +1 −0Browse files

Unified · Split

init/main.c+1−0
@@ -793,6 +793,7 @@ static void run_init_process(char *init_filename) · 792 unmodified lines
793793 * makes it inline to init() and it becomes part of init.text section
794794 */
795795 static noinline int init_post(void)
796+ __releases(kernel_lock)
796797 {
797798 /* need to finish all async __init code before freeing the memory */
798799 async_synchronize_full();

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t