diff options
author | Jan Beulich <jbeulich@novell.com> | 2007-10-17 12:04:37 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@inhelltoy.tec.linutronix.de> | 2007-10-17 14:16:11 -0400 |
commit | 9689ba8ad0dc27c0a2ce40eb4c0f8fb66551119c (patch) | |
tree | 3b59df3743d1ee2932201d41cbc0f96d7ade159b /arch/x86/kernel/traps_64.c | |
parent | ff7f36497e77a8d60f09065fc8b606a543214c3f (diff) |
x86: constify stacktrace_ops
.. as they're never written to.
[ tglx: arch/x86 adaptation ]
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/traps_64.c')
-rw-r--r-- | arch/x86/kernel/traps_64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/traps_64.c b/arch/x86/kernel/traps_64.c index bc7116acf8ff..b4a9b3db1994 100644 --- a/arch/x86/kernel/traps_64.c +++ b/arch/x86/kernel/traps_64.c | |||
@@ -215,7 +215,7 @@ static inline int valid_stack_ptr(struct thread_info *tinfo, void *p) | |||
215 | 215 | ||
216 | void dump_trace(struct task_struct *tsk, struct pt_regs *regs, | 216 | void dump_trace(struct task_struct *tsk, struct pt_regs *regs, |
217 | unsigned long *stack, | 217 | unsigned long *stack, |
218 | struct stacktrace_ops *ops, void *data) | 218 | const struct stacktrace_ops *ops, void *data) |
219 | { | 219 | { |
220 | const unsigned cpu = get_cpu(); | 220 | const unsigned cpu = get_cpu(); |
221 | unsigned long *irqstack_end = (unsigned long*)cpu_pda(cpu)->irqstackptr; | 221 | unsigned long *irqstack_end = (unsigned long*)cpu_pda(cpu)->irqstackptr; |
@@ -336,7 +336,7 @@ static void print_trace_address(void *data, unsigned long addr) | |||
336 | printk_address(addr); | 336 | printk_address(addr); |
337 | } | 337 | } |
338 | 338 | ||
339 | static struct stacktrace_ops print_trace_ops = { | 339 | static const struct stacktrace_ops print_trace_ops = { |
340 | .warning = print_trace_warning, | 340 | .warning = print_trace_warning, |
341 | .warning_symbol = print_trace_warning_symbol, | 341 | .warning_symbol = print_trace_warning_symbol, |
342 | .stack = print_trace_stack, | 342 | .stack = print_trace_stack, |