Skip to content

Commit cb57a2b

Browse files
author
H. Peter Anvin
committed
x86-32: Export kernel_stack_pointer() for modules
Modules, in particular oprofile (and possibly other similar tools) need kernel_stack_pointer(), so export it using EXPORT_SYMBOL_GPL(). Cc: Yang Wei <wei.yang@windriver.com> Cc: Robert Richter <robert.richter@amd.com> Cc: Jun Zhang <jun.zhang@intel.com> Cc: <stable@vger.kernel.org> Link: http://lkml.kernel.org/r/20120912135059.GZ8285@erda.amd.com Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
1 parent 1022623 commit cb57a2b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/x86/kernel/ptrace.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <linux/perf_event.h>
2323
#include <linux/hw_breakpoint.h>
2424
#include <linux/rcupdate.h>
25+
#include <linux/module.h>
2526

2627
#include <asm/uaccess.h>
2728
#include <asm/pgtable.h>
@@ -193,6 +194,7 @@ unsigned long kernel_stack_pointer(struct pt_regs *regs)
193194

194195
return (unsigned long)regs;
195196
}
197+
EXPORT_SYMBOL_GPL(kernel_stack_pointer);
196198

197199
static unsigned long *pt_regs_access(struct pt_regs *regs, unsigned long regno)
198200
{

0 commit comments

Comments
 (0)