Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108225
b: refs/heads/master
c: 59f9415
h: refs/heads/master
i:
  108223: 86e16d2
v: v3
  • Loading branch information
Arjan van de Ven authored and Rusty Russell committed Aug 12, 2008
1 parent 551a72e commit a59b394
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4bceba417a795b78a5146e3f85291cb7bb2402ef
refs/heads/master: 59f9415ffb9759e950d775f4c400f747b332cc02
1 change: 1 addition & 0 deletions trunk/include/linux/init.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ extern initcall_t __con_initcall_start[], __con_initcall_end[];
extern initcall_t __security_initcall_start[], __security_initcall_end[];

/* Defined in init/main.c */
extern int do_one_initcall(initcall_t fn);
extern char __initdata boot_command_line[];
extern char *saved_command_line;
extern unsigned int reset_devices;
Expand Down
6 changes: 4 additions & 2 deletions trunk/init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ asmlinkage void __init start_kernel(void)
rest_init();
}

static int __initdata initcall_debug;
static int initcall_debug;

static int __init initcall_debug_setup(char *str)
{
Expand All @@ -700,7 +700,7 @@ static int __init initcall_debug_setup(char *str)
}
__setup("initcall_debug", initcall_debug_setup);

static void __init do_one_initcall(initcall_t fn)
int do_one_initcall(initcall_t fn)
{
int count = preempt_count();
ktime_t t0, t1, delta;
Expand Down Expand Up @@ -740,6 +740,8 @@ static void __init do_one_initcall(initcall_t fn)
print_fn_descriptor_symbol(KERN_WARNING "initcall %s", fn);
printk(" returned with %s\n", msgbuf);
}

return result;
}


Expand Down
2 changes: 1 addition & 1 deletion trunk/kernel/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -2288,7 +2288,7 @@ sys_init_module(void __user *umod,

/* Start the module */
if (mod->init != NULL)
ret = mod->init();
ret = do_one_initcall(mod->init);
if (ret < 0) {
/* Init routine failed: abort. Try to protect us from
buggy refcounters. */
Expand Down

0 comments on commit a59b394

Please sign in to comment.