mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04: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 <[email protected]>
This commit is contained in:
parent
7371fd11a6
commit
a442ac512f
5 changed files with 20 additions and 21 deletions
|
|
@ -418,7 +418,7 @@ void __suspend_report_result(const char *function, void *fn, int ret)
|
|||
{
|
||||
if (ret) {
|
||||
printk(KERN_ERR "%s(): ", function);
|
||||
print_fn_descriptor_symbol("%s() returns ", (unsigned long)fn);
|
||||
print_fn_descriptor_symbol("%s returns ", fn);
|
||||
printk("%d\n", ret);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue