diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2016-06-24 17:50:30 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-06-24 20:23:52 -0400 |
commit | 0fd5ed8d897cffdc74903931bd7fcc9d8d154460 (patch) | |
tree | da9967c1b84176f2d01e24d013182007204c5919 /init/main.c | |
parent | 5a9294e5c535deab69831076af15cd35e1c95f8b (diff) |
init/main.c: fix initcall_blacklisted on ia64, ppc64 and parisc64
When I replaced kasprintf("%pf") with a direct call to
sprint_symbol_no_offset I must have broken the initcall blacklisting
feature on the arches where dereference_function_descriptor() is
non-trivial.
Fixes: c8cdd2be213f (init/main.c: simplify initcall_blacklisted())
Link: http://lkml.kernel.org/r/1466027283-4065-1-git-send-email-linux@rasmusvillemoes.dk
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Yang Shi <yang.shi@linaro.org>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Petr Mladek <pmladek@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init/main.c')
-rw-r--r-- | init/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/init/main.c b/init/main.c index 4c17fda5c2ff..63a5afb54f25 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -708,11 +708,13 @@ static bool __init_or_module initcall_blacklisted(initcall_t fn) | |||
708 | { | 708 | { |
709 | struct blacklist_entry *entry; | 709 | struct blacklist_entry *entry; |
710 | char fn_name[KSYM_SYMBOL_LEN]; | 710 | char fn_name[KSYM_SYMBOL_LEN]; |
711 | unsigned long addr; | ||
711 | 712 | ||
712 | if (list_empty(&blacklisted_initcalls)) | 713 | if (list_empty(&blacklisted_initcalls)) |
713 | return false; | 714 | return false; |
714 | 715 | ||
715 | sprint_symbol_no_offset(fn_name, (unsigned long)fn); | 716 | addr = (unsigned long) dereference_function_descriptor(fn); |
717 | sprint_symbol_no_offset(fn_name, addr); | ||
716 | 718 | ||
717 | list_for_each_entry(entry, &blacklisted_initcalls, next) { | 719 | list_for_each_entry(entry, &blacklisted_initcalls, next) { |
718 | if (!strcmp(fn_name, entry->buf)) { | 720 | if (!strcmp(fn_name, entry->buf)) { |