public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Add assembler equivalents to __init{,date}_refok
@ 2007-10-10 13:35 Ralf Baechle
  0 siblings, 0 replies; only message in thread
From: Ralf Baechle @ 2007-10-10 13:35 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, linux-mips

---
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(+)

diff --git a/include/linux/init.h b/include/linux/init.h
index 74b1f43..031edcc 100644
--- a/include/linux/init.h
+++ b/include/linux/init.h
@@ -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__
 /*

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-10-10 13:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-10 13:35 [PATCH] Add assembler equivalents to __init{,date}_refok Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox