Skip to content

Commit

Permalink
sh: Export unwind_stack() to satisfy modular oprofile.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed Aug 21, 2009
1 parent 97f361e commit 4ab8f24
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/sh/kernel/unwinder.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down Expand Up @@ -160,3 +161,4 @@ void unwind_stack(struct task_struct *task, struct pt_regs *regs,

atomic_dec(&unwinder_running);
}
EXPORT_SYMBOL_GPL(unwind_stack);

0 comments on commit 4ab8f24

Please sign in to comment.