]> err.no Git - linux-2.6/commitdiff
Add assembler equivalents to __init{,date}_refok
authorRalf Baechle <ralf@linux-mips.org>
Tue, 16 Oct 2007 08:23:47 +0000 (01:23 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 16 Oct 2007 16:42:49 +0000 (09:42 -0700)
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>
include/linux/init.h

index f8d9d0b5cffcad16fecacaafaca541a338aec951..9b7a2ba8237eeca0766fa2cef0a06e565b727853 100644 (file)
 
 /* 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__
 /*