summaryrefslogtreecommitdiffstats
path: root/include
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 10:48:18 -0700
commit83f4fcce7fdd213bd570b899862c3838871f8cf7 (patch)
treeba66890ee98386e33b5d642af76291fabf8d0d29 /include
parentc33bd9aac0597eeedaaa01ea5aafe456894b2f2b (diff)
downloadop-kernel-dev-83f4fcce7fdd213bd570b899862c3838871f8cf7.zip
op-kernel-dev-83f4fcce7fdd213bd570b899862c3838871f8cf7.tar.gz
[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 'include')
-rw-r--r--include/linux/unwind.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/unwind.h b/include/linux/unwind.h
index 13c7b2c..ce48e2c 100644
--- a/include/linux/unwind.h
+++ b/include/linux/unwind.h
@@ -29,12 +29,16 @@ struct module;
*/
extern void unwind_init(void);
+#ifdef CONFIG_MODULES
+
extern void *unwind_add_table(struct module *,
const void *table_start,
unsigned long table_size);
extern void unwind_remove_table(void *handle, int init_only);
+#endif
+
extern int unwind_init_frame_info(struct unwind_frame_info *,
struct task_struct *,
/*const*/ struct pt_regs *);
@@ -72,6 +76,8 @@ struct unwind_frame_info {};
static inline void unwind_init(void) {}
+#ifdef CONFIG_MODULES
+
static inline void *unwind_add_table(struct module *mod,
const void *table_start,
unsigned long table_size)
@@ -79,6 +85,8 @@ static inline void *unwind_add_table(struct module *mod,
return NULL;
}
+#endif
+
static inline void unwind_remove_table(void *handle, int init_only)
{
}
OpenPOWER on IntegriCloud