Commit 0322a2b84096270c238da45f444bd3c9eb6f5e9c

Authored by Ralf Baechle
Committed by Linus Torvalds
1 parent bfe8df3d31

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.

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>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

include/linux/init.h
... ... @@ -67,8 +67,10 @@
67 67  
68 68 /* For assembly routines */
69 69 #define __INIT .section ".init.text","ax"
  70 +#define __INIT_REFOK .section ".text.init.refok","ax"
70 71 #define __FINIT .previous
71 72 #define __INITDATA .section ".init.data","aw"
  73 +#define __INITDATA_REFOK .section ".data.init.refok","aw"
72 74  
73 75 #ifndef __ASSEMBLY__
74 76 /*