Skip to content

Commit

Permalink
Add assembler equivalents to __init{,date}_refok
Browse files Browse the repository at this point in the history
I need __INIT_REFOK to fix a MODPOST warning for a few MIPS configs which
have to call init code from .text very early in the game due to bootloader
issues.  __INITDATA_REFOK is just for consistency.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Ralf Baechle authored and Linus Torvalds committed Oct 16, 2007
1 parent bfe8df3 commit 0322a2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/linux/init.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@

/* For assembly routines */
#define __INIT .section ".init.text","ax"
#define __INIT_REFOK .section ".text.init.refok","ax"
#define __FINIT .previous
#define __INITDATA .section ".init.data","aw"
#define __INITDATA_REFOK .section ".data.init.refok","aw"

#ifndef __ASSEMBLY__
/*
Expand Down

0 comments on commit 0322a2b

Please sign in to comment.