summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/module.h
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2014-04-03 11:00:43 +0200
committerAnton Blanchard <anton@samba.org>2014-04-23 02:05:34 +0200
commit83775b85668a85036973c71264a959236e7becbd (patch)
tree3a751b74a5fa580b3371ff747a626970a52db089 /arch/powerpc/include/asm/module.h
parentpowerpc/kprobes: Fix ABIv2 issues with kprobe_lookup_name (diff)
downloadlinux-83775b85668a85036973c71264a959236e7becbd.tar.xz
linux-83775b85668a85036973c71264a959236e7becbd.zip
powerpc/modules: Create is_module_trampoline()
ftrace has way too much knowledge of our kernel module trampoline layout hidden inside it. Create is_module_trampoline() that can abstract this away inside the module loader code. Signed-off-by: Anton Blanchard <anton@samba.org>
Diffstat (limited to 'arch/powerpc/include/asm/module.h')
-rw-r--r--arch/powerpc/include/asm/module.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/module.h b/arch/powerpc/include/asm/module.h
index c9c7aaaf95f5..f2711f0eb873 100644
--- a/arch/powerpc/include/asm/module.h
+++ b/arch/powerpc/include/asm/module.h
@@ -78,6 +78,7 @@ struct mod_arch_specific {
# endif /* MODULE */
#endif
+bool is_module_trampoline(u32 *insns);
struct exception_table_entry;
void sort_ex_table(struct exception_table_entry *start,