From b609308e1415efebdf79ebd553f4dd47b0ff2722 Mon Sep 17 00:00:00 2001 From: Kyle McMartin Date: Sun, 15 Mar 2009 16:49:55 -0400 Subject: parisc: move dereference_function_descriptor to process.c Commit deac93df26b20cf8438339b5935b5f5643bc30c9 fixed up printing of %pF on parisc, but added the dereference_function_descriptor prototype to module.c... this isn't a particularly wise idea as module.c might not always be compiled. Signed-off-by: Kyle McMartin --- arch/parisc/kernel/module.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'arch/parisc/kernel/module.c') diff --git a/arch/parisc/kernel/module.c b/arch/parisc/kernel/module.c index 3439cbd..ecd1c50 100644 --- a/arch/parisc/kernel/module.c +++ b/arch/parisc/kernel/module.c @@ -61,9 +61,7 @@ #include #include #include -#include -#include #include #if 0 @@ -912,15 +910,3 @@ void module_arch_cleanup(struct module *mod) deregister_unwind_table(mod); module_bug_cleanup(mod); } - -#ifdef CONFIG_64BIT -void *dereference_function_descriptor(void *ptr) -{ - Elf64_Fdesc *desc = ptr; - void *p; - - if (!probe_kernel_address(&desc->addr, p)) - ptr = p; - return ptr; -} -#endif -- cgit v1.1