Re: [PATCH -mm] ftrace : Fix section mismatch warning.

From: Ingo Molnar
Date: Fri Oct 24 2008 - 07:50:40 EST



* Rakib Mullick <rakib.mullick@xxxxxxxxx> wrote:

> Does the following solves the problem?
> Thanks.
>
> --- linux-2.6-orig/arch/x86/kernel/ftrace.c 2008-10-24 16:35:48.000000000 +0600
> +++ linux-2.6/arch/x86/kernel/ftrace.c 2008-10-24 16:40:09.000000000 +0600
> @@ -129,7 +129,7 @@ int __init ftrace_dyn_arch_init(void *da
> asm volatile (
> "jmp ftrace_test_jmp\n"
> /* This code needs to stay around */
> - ".section .text, \"ax\"\n"
> + ".section .text.init, \"ax\"\n"

how about the "This code needs to stay around" comment?

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/