summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-08-22 03:43:15 +0900
committerPaul Mundt <lethal@linux-sh.org>2009-08-22 03:43:15 +0900
commit4ab8f241f6d510470c15b62ac10f6905ff5c97bd (patch)
tree738c3eb0231be1518137953a4f3745390d41e232 /arch
parent97f361e2498ada54b48a235619eaf5af8e46427e (diff)
sh: Export unwind_stack() to satisfy modular oprofile.
If the oprofile code is built as a module, unwind_stack() as used by the oprofile backtrace code is not available, causing build breakage. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/sh/kernel/unwinder.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sh/kernel/unwinder.c b/arch/sh/kernel/unwinder.c
index 2b30fa28b440..5f56ff3f55e0 100644
--- a/arch/sh/kernel/unwinder.c
+++ b/arch/sh/kernel/unwinder.c
@@ -11,6 +11,7 @@
#include <linux/errno.h>
#include <linux/list.h>
#include <linux/spinlock.h>
+#include <linux/module.h>
#include <asm/unwinder.h>
#include <asm/atomic.h>
@@ -160,3 +161,4 @@ void unwind_stack(struct task_struct *task, struct pt_regs *regs,
atomic_dec(&unwinder_running);
}
+EXPORT_SYMBOL_GPL(unwind_stack);