[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>
This commit is contained in:
committed by
Linus Torvalds
parent
c33bd9aac0
commit
83f4fcce7f
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user