Skip to content

Commit

Permalink
FRV: Use __INIT macro instead of .text.init.
Browse files Browse the repository at this point in the history
FRV is placing some code in the .text.init section but 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>
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Sam Ravnborg <sam@ravnborg.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 b2ad5e1 commit df1f6d2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion arch/frv/kernel/head-mmu-fr451.S
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* 2 of the License, or (at your option) any later version.
*/

#include <linux/init.h>
#include <linux/threads.h>
#include <linux/linkage.h>
#include <asm/ptrace.h>
Expand All @@ -31,7 +32,7 @@
#define __400_LCR 0xfe000100
#define __400_LSBR 0xfe000c00

.section .text.init,"ax"
__INIT
.balign 4

###############################################################################
Expand Down
3 changes: 2 additions & 1 deletion arch/frv/kernel/head-uc-fr401.S
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* 2 of the License, or (at your option) any later version.
*/

#include <linux/init.h>
#include <linux/threads.h>
#include <linux/linkage.h>
#include <asm/ptrace.h>
Expand All @@ -30,7 +31,7 @@
#define __400_LCR 0xfe000100
#define __400_LSBR 0xfe000c00

.section .text.init,"ax"
__INIT
.balign 4

###############################################################################
Expand Down
3 changes: 2 additions & 1 deletion arch/frv/kernel/head-uc-fr451.S
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* 2 of the License, or (at your option) any later version.
*/

#include <linux/init.h>
#include <linux/threads.h>
#include <linux/linkage.h>
#include <asm/ptrace.h>
Expand All @@ -30,7 +31,7 @@
#define __400_LCR 0xfe000100
#define __400_LSBR 0xfe000c00

.section .text.init,"ax"
__INIT
.balign 4

###############################################################################
Expand Down
3 changes: 2 additions & 1 deletion arch/frv/kernel/head-uc-fr555.S
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* 2 of the License, or (at your option) any later version.
*/

#include <linux/init.h>
#include <linux/threads.h>
#include <linux/linkage.h>
#include <asm/ptrace.h>
Expand All @@ -29,7 +30,7 @@
#define __551_LCR 0xfeff1100
#define __551_LSBR 0xfeff1c00

.section .text.init,"ax"
__INIT
.balign 4

###############################################################################
Expand Down

0 comments on commit df1f6d2

Please sign in to comment.