summaryrefslogtreecommitdiffstats
path: root/kernel/unwind.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2006-06-26 13:57:50 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-26 19:48:18 +0200
commit83f4fcce7fdd213bd570b899862c3838871f8cf7 (patch)
treeba66890ee98386e33b5d642af76291fabf8d0d29 /kernel/unwind.c
parent[PATCH] i386/x86-64: fall back to old-style call trace if no unwinding (diff)
downloadlinux-83f4fcce7fdd213bd570b899862c3838871f8cf7.tar.xz
linux-83f4fcce7fdd213bd570b899862c3838871f8cf7.zip
[PATCH] x86_64: allow unwinder to build without module support
Add proper conditionals to be able to build with CONFIG_MODULES=n. Signed-off-by: Jan Beulich <jbeulich@novell.com> Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/unwind.c')
-rw-r--r--kernel/unwind.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/unwind.c b/kernel/unwind.c
index 0421035272d9..f69c804c8e62 100644
--- a/kernel/unwind.c
+++ b/kernel/unwind.c
@@ -172,6 +172,8 @@ void __init unwind_init(void)
__start_unwind, __end_unwind - __start_unwind);
}
+#ifdef CONFIG_MODULES
+
/* Must be called with module_mutex held. */
void *unwind_add_table(struct module *module,
const void *table_start,
@@ -253,6 +255,8 @@ void unwind_remove_table(void *handle, int init_only)
kfree(table);
}
+#endif /* CONFIG_MODULES */
+
static uleb128_t get_uleb128(const u8 **pcur, const u8 *end)
{
const u8 *cur = *pcur;