|
@@ -112,7 +112,7 @@ struct stack_frame {
|
|
|
|
|
|
static inline unsigned long print_context_stack(struct thread_info *tinfo,
|
|
|
unsigned long *stack, unsigned long ebp,
|
|
|
- struct stacktrace_ops *ops, void *data)
|
|
|
+ const struct stacktrace_ops *ops, void *data)
|
|
|
{
|
|
|
#ifdef CONFIG_FRAME_POINTER
|
|
|
struct stack_frame *frame = (struct stack_frame *)ebp;
|
|
@@ -149,7 +149,7 @@ static inline unsigned long print_context_stack(struct thread_info *tinfo,
|
|
|
|
|
|
void dump_trace(struct task_struct *task, struct pt_regs *regs,
|
|
|
unsigned long *stack,
|
|
|
- struct stacktrace_ops *ops, void *data)
|
|
|
+ const struct stacktrace_ops *ops, void *data)
|
|
|
{
|
|
|
unsigned long ebp = 0;
|
|
|
|
|
@@ -221,7 +221,7 @@ static void print_trace_address(void *data, unsigned long addr)
|
|
|
touch_nmi_watchdog();
|
|
|
}
|
|
|
|
|
|
-static struct stacktrace_ops print_trace_ops = {
|
|
|
+static const struct stacktrace_ops print_trace_ops = {
|
|
|
.warning = print_trace_warning,
|
|
|
.warning_symbol = print_trace_warning_symbol,
|
|
|
.stack = print_trace_stack,
|