mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
Clean up 'print_fn_descriptor_symbol()' types
Everybody wants to pass it a function pointer, and in fact, that is what you _must_ pass it for it to make sense (since it knows that ia64 and ppc64 use descriptors for function pointers and fetches the actual address from there). So don't make the argument be a 'unsigned long' and force everybody to add a cast. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
7371fd11a6
commit
a442ac512f
5 changed files with 20 additions and 21 deletions
|
@ -706,8 +706,7 @@ static void __init do_initcalls(void)
|
|||
int result;
|
||||
|
||||
if (initcall_debug) {
|
||||
print_fn_descriptor_symbol("calling %s()\n",
|
||||
(unsigned long) *call);
|
||||
print_fn_descriptor_symbol("calling %s\n", *call);
|
||||
t0 = ktime_get();
|
||||
}
|
||||
|
||||
|
@ -717,8 +716,7 @@ static void __init do_initcalls(void)
|
|||
t1 = ktime_get();
|
||||
delta = ktime_sub(t1, t0);
|
||||
|
||||
print_fn_descriptor_symbol("initcall %s()",
|
||||
(unsigned long) *call);
|
||||
print_fn_descriptor_symbol("initcall %s", *call);
|
||||
printk(" returned %d after %Ld msecs\n", result,
|
||||
(unsigned long long) delta.tv64 >> 20);
|
||||
}
|
||||
|
@ -737,8 +735,7 @@ static void __init do_initcalls(void)
|
|||
local_irq_enable();
|
||||
}
|
||||
if (msgbuf[0]) {
|
||||
print_fn_descriptor_symbol(KERN_WARNING "initcall %s()",
|
||||
(unsigned long) *call);
|
||||
print_fn_descriptor_symbol(KERN_WARNING "initcall %s", *call);
|
||||
printk(" returned with %s\n", msgbuf);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue