The patch titled x86: constify stacktrace_ops has been added to the -mm tree. Its filename is x86-constify-stacktrace_ops.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: x86: constify stacktrace_ops From: "Jan Beulich" <jbeulich@xxxxxxxxxx> .. as they're never written to. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/i386/kernel/traps.c | 6 +++--- arch/x86_64/kernel/stacktrace.c | 2 +- arch/x86_64/kernel/traps.c | 4 ++-- include/asm-x86_64/stacktrace.h | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff -puN arch/i386/kernel/traps.c~x86-constify-stacktrace_ops arch/i386/kernel/traps.c --- a/arch/i386/kernel/traps.c~x86-constify-stacktrace_ops +++ a/arch/i386/kernel/traps.c @@ -119,7 +119,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; @@ -184,7 +184,7 @@ dump_trace_unwind(struct unwind_frame_in 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; @@ -291,7 +291,7 @@ static void print_trace_address(void *da 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, diff -puN arch/x86_64/kernel/stacktrace.c~x86-constify-stacktrace_ops arch/x86_64/kernel/stacktrace.c --- a/arch/x86_64/kernel/stacktrace.c~x86-constify-stacktrace_ops +++ a/arch/x86_64/kernel/stacktrace.c @@ -35,7 +35,7 @@ static void save_stack_address(void *dat trace->entries[trace->nr_entries++] = addr; } -static struct stacktrace_ops save_stack_ops = { +static const struct stacktrace_ops save_stack_ops = { .warning = save_stack_warning, .warning_symbol = save_stack_warning_symbol, .stack = save_stack_stack, diff -puN arch/x86_64/kernel/traps.c~x86-constify-stacktrace_ops arch/x86_64/kernel/traps.c --- a/arch/x86_64/kernel/traps.c~x86-constify-stacktrace_ops +++ a/arch/x86_64/kernel/traps.c @@ -248,7 +248,7 @@ static inline int valid_stack_ptr(struct void dump_trace(struct task_struct *tsk, struct pt_regs *regs, unsigned long *stack, - struct stacktrace_ops *ops, void *data) + const struct stacktrace_ops *ops, void *data) { const unsigned cpu = get_cpu(); unsigned long *irqstack_end = (unsigned long*)cpu_pda(cpu)->irqstackptr; @@ -404,7 +404,7 @@ static void print_trace_address(void *da printk_address(addr); } -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, diff -puN include/asm-x86_64/stacktrace.h~x86-constify-stacktrace_ops include/asm-x86_64/stacktrace.h --- a/include/asm-x86_64/stacktrace.h~x86-constify-stacktrace_ops +++ a/include/asm-x86_64/stacktrace.h @@ -15,6 +15,6 @@ struct stacktrace_ops { }; void dump_trace(struct task_struct *tsk, struct pt_regs *regs, unsigned long *stack, - struct stacktrace_ops *ops, void *data); + const struct stacktrace_ops *ops, void *data); #endif _ Patches currently in -mm which might be from jbeulich@xxxxxxxxxx are intel_cacheinfo-adjustmentspatch.patch tristate-choices-with-mixed-tristate-and-boolean.patch fix-x86_64-mm-unwinder.patch x86-misc-constifications.patch x86-constify-stacktrace_ops.patch x86-constify-wd_ops.patch x86-multi-byte-single-instruction-nops.patch floppy-tolerate-dma-channel-unavailability.patch cleanup-floppyh.patch handle-recursive-calls-to-bust_spinlocks.patch store-__setup_str_-in-a-more-compact-way.patch constify-string-array-kparam-tracking-structures.patch cpu-hotplug-thermal_throttle-fix-cpu-hotplug-error-handling.patch cpu-hotplug-msr-fix-cpu-hotplug-error-handling.patch cpu-hotplug-cpuid-fix-cpu-hotplug-error-handling.patch cpu-hotplug-mce-fix-cpu-hotplug-error-handling.patch cpu-hotplug-intel_cacheinfo-fix-cpu-hotplug-error-handling.patch cpu-hotplug-intel_cacheinfo-fix-cpu-hotplug-error-handling-fix-a-section-mismatch-warning.patch pnp-dont-fail-device-init-if-no-dma-channel.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html