Skip to content

Commit

Permalink
sh: Use __INIT macro instead of .text.init.
Browse files Browse the repository at this point in the history
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 <tabbott@mit.edu>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Tim Abbott authored and Linus Torvalds committed Apr 28, 2009
1 parent 9203fc9 commit 882016f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arch/sh/kernel/cpu/sh5/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* for more details.
*/
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/sys.h>
#include <cpu/registers.h>
#include <asm/processor.h>
Expand Down Expand Up @@ -2058,10 +2059,10 @@ asm_uaccess_end:


/*
* --- .text.init Section
* --- .init.text Section
*/

.section .text.init, "ax"
__INIT

/*
* void trap_init (void)
Expand Down

0 comments on commit 882016f

Please sign in to comment.