Skip to contentSkip to conversation

Add assembler equivalents to __init{,date}_refok

PATCH New Ralf Baechle 1 participant 1 message Oct 10, 2007 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add assembler equivalents to __init{,date}_refok

---
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.

 include/linux/init.h |    2 ++
 1 file changed, 2 insertions(+)
include/linux/init.h +2 -0
index 74b1f43..031edcc 100644
@@ -66,8 +66,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__
 /*