aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/unwind.c
diff options
context:
space:
mode:
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)
172 __start_unwind, __end_unwind - __start_unwind); 172 __start_unwind, __end_unwind - __start_unwind);
173} 173}
174 174
175#ifdef CONFIG_MODULES
176
175/* Must be called with module_mutex held. */ 177/* Must be called with module_mutex held. */
176void *unwind_add_table(struct module *module, 178void *unwind_add_table(struct module *module,
177 const void *table_start, 179 const void *table_start,
@@ -253,6 +255,8 @@ void unwind_remove_table(void *handle, int init_only)
253 kfree(table); 255 kfree(table);
254} 256}
255 257
258#endif /* CONFIG_MODULES */
259
256static uleb128_t get_uleb128(const u8 **pcur, const u8 *end) 260static uleb128_t get_uleb128(const u8 **pcur, const u8 *end)
257{ 261{
258 const u8 *cur = *pcur; 262 const u8 *cur = *pcur;