From: Tim Abbott Date: Mon, 27 Apr 2009 18:02:25 +0000 (-0400) Subject: sh: Use __INIT macro instead of .text.init. X-Git-Tag: v3.0~9355 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=882016ff3659126f6da50cf7cb84a0a15d00a87b;p=platform%2Fkernel%2Flinux-amlogic.git sh: Use __INIT macro instead of .text.init. The sh architecture has some code in the .text.init section, but it does not reference that section in its linker scripts. This change moves this code from the .text.init section to the .init.text section, which is presumably where it belongs. Signed-off-by: Tim Abbott Acked-by: Sam Ravnborg Acked-by: Paul Mundt Signed-off-by: Linus Torvalds --- diff --git a/arch/sh/kernel/cpu/sh5/entry.S b/arch/sh/kernel/cpu/sh5/entry.S index e640c63..7e49cb8 100644 --- a/arch/sh/kernel/cpu/sh5/entry.S +++ b/arch/sh/kernel/cpu/sh5/entry.S @@ -10,6 +10,7 @@ * for more details. */ #include +#include #include #include #include @@ -2058,10 +2059,10 @@ asm_uaccess_end: /* - * --- .text.init Section + * --- .init.text Section */ - .section .text.init, "ax" + __INIT /* * void trap_init (void)