diff options
Diffstat (limited to 'include/linux/unwind.h')
-rw-r--r-- | include/linux/unwind.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/unwind.h b/include/linux/unwind.h index 13c7b2cd87c..ce48e2cd37a 100644 --- a/include/linux/unwind.h +++ b/include/linux/unwind.h | |||
@@ -29,12 +29,16 @@ struct module; | |||
29 | */ | 29 | */ |
30 | extern void unwind_init(void); | 30 | extern void unwind_init(void); |
31 | 31 | ||
32 | #ifdef CONFIG_MODULES | ||
33 | |||
32 | extern void *unwind_add_table(struct module *, | 34 | extern void *unwind_add_table(struct module *, |
33 | const void *table_start, | 35 | const void *table_start, |
34 | unsigned long table_size); | 36 | unsigned long table_size); |
35 | 37 | ||
36 | extern void unwind_remove_table(void *handle, int init_only); | 38 | extern void unwind_remove_table(void *handle, int init_only); |
37 | 39 | ||
40 | #endif | ||
41 | |||
38 | extern int unwind_init_frame_info(struct unwind_frame_info *, | 42 | extern int unwind_init_frame_info(struct unwind_frame_info *, |
39 | struct task_struct *, | 43 | struct task_struct *, |
40 | /*const*/ struct pt_regs *); | 44 | /*const*/ struct pt_regs *); |
@@ -72,6 +76,8 @@ struct unwind_frame_info {}; | |||
72 | 76 | ||
73 | static inline void unwind_init(void) {} | 77 | static inline void unwind_init(void) {} |
74 | 78 | ||
79 | #ifdef CONFIG_MODULES | ||
80 | |||
75 | static inline void *unwind_add_table(struct module *mod, | 81 | static inline void *unwind_add_table(struct module *mod, |
76 | const void *table_start, | 82 | const void *table_start, |
77 | unsigned long table_size) | 83 | unsigned long table_size) |
@@ -79,6 +85,8 @@ static inline void *unwind_add_table(struct module *mod, | |||
79 | return NULL; | 85 | return NULL; |
80 | } | 86 | } |
81 | 87 | ||
88 | #endif | ||
89 | |||
82 | static inline void unwind_remove_table(void *handle, int init_only) | 90 | static inline void unwind_remove_table(void *handle, int init_only) |
83 | { | 91 | { |
84 | } | 92 | } |