Commit cb57a2b4cff7edf2a4e32c0163200e9434807e0a
1 parent
1022623842
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
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>
Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff
arch/x86/kernel/ptrace.c
... | ... | @@ -22,6 +22,7 @@ |
22 | 22 | #include <linux/perf_event.h> |
23 | 23 | #include <linux/hw_breakpoint.h> |
24 | 24 | #include <linux/rcupdate.h> |
25 | +#include <linux/module.h> | |
25 | 26 | |
26 | 27 | #include <asm/uaccess.h> |
27 | 28 | #include <asm/pgtable.h> |
... | ... | @@ -193,6 +194,7 @@ |
193 | 194 | |
194 | 195 | return (unsigned long)regs; |
195 | 196 | } |
197 | +EXPORT_SYMBOL_GPL(kernel_stack_pointer); | |
196 | 198 | |
197 | 199 | static unsigned long *pt_regs_access(struct pt_regs *regs, unsigned long regno) |
198 | 200 | { |