X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=init%2Fmain.c;h=2858be732f6d25dd8431cd994645c8c6af3828c2;hb=HEAD;hp=eae02aa03c9e80062ba6920c57c347c415e6d0ca;hpb=3ef500a53f8c44ca82decf79dd8138fd07c7739d;p=cascardo%2Flinux.git diff --git a/init/main.c b/init/main.c index eae02aa03c9e..2858be732f6d 100644 --- a/init/main.c +++ b/init/main.c @@ -380,7 +380,7 @@ static void __init setup_command_line(char *command_line) static __initdata DECLARE_COMPLETION(kthreadd_done); -static noinline void __init_refok rest_init(void) +static noinline void __ref rest_init(void) { int pid; @@ -716,6 +716,12 @@ static bool __init_or_module initcall_blacklisted(initcall_t fn) addr = (unsigned long) dereference_function_descriptor(fn); sprint_symbol_no_offset(fn_name, addr); + /* + * fn will be "function_name [module_name]" where [module_name] is not + * displayed for built-in init functions. Strip off the [module_name]. + */ + strreplace(fn_name, ' ', '\0'); + list_for_each_entry(entry, &blacklisted_initcalls, next) { if (!strcmp(fn_name, entry->buf)) { pr_debug("initcall %s blacklisted\n", fn_name); @@ -783,6 +789,7 @@ int __init_or_module do_one_initcall(initcall_t fn) } WARN(msgbuf[0], "initcall %pF returned with %s\n", fn, msgbuf); + add_latent_entropy(); return ret; }