diff options
Diffstat (limited to 'include/linux/init.h')
-rw-r--r-- | include/linux/init.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/linux/init.h b/include/linux/init.h index 13b633ed695e..ff8bde520d03 100644 --- a/include/linux/init.h +++ b/include/linux/init.h | |||
@@ -103,8 +103,8 @@ | |||
103 | #define __INIT .section ".init.text","ax" | 103 | #define __INIT .section ".init.text","ax" |
104 | #define __FINIT .previous | 104 | #define __FINIT .previous |
105 | 105 | ||
106 | #define __INITDATA .section ".init.data","aw" | 106 | #define __INITDATA .section ".init.data","aw",%progbits |
107 | #define __INITRODATA .section ".init.rodata","a" | 107 | #define __INITRODATA .section ".init.rodata","a",%progbits |
108 | #define __FINITDATA .previous | 108 | #define __FINITDATA .previous |
109 | 109 | ||
110 | #define __DEVINIT .section ".devinit.text", "ax" | 110 | #define __DEVINIT .section ".devinit.text", "ax" |
@@ -271,6 +271,7 @@ void __init parse_early_options(char *cmdline); | |||
271 | #else /* MODULE */ | 271 | #else /* MODULE */ |
272 | 272 | ||
273 | /* Don't use these in modules, but some people do... */ | 273 | /* Don't use these in modules, but some people do... */ |
274 | #define early_initcall(fn) module_init(fn) | ||
274 | #define core_initcall(fn) module_init(fn) | 275 | #define core_initcall(fn) module_init(fn) |
275 | #define postcore_initcall(fn) module_init(fn) | 276 | #define postcore_initcall(fn) module_init(fn) |
276 | #define arch_initcall(fn) module_init(fn) | 277 | #define arch_initcall(fn) module_init(fn) |
@@ -305,9 +306,17 @@ void __init parse_early_options(char *cmdline); | |||
305 | #ifdef CONFIG_MODULES | 306 | #ifdef CONFIG_MODULES |
306 | #define __init_or_module | 307 | #define __init_or_module |
307 | #define __initdata_or_module | 308 | #define __initdata_or_module |
309 | #define __initconst_or_module | ||
310 | #define __INIT_OR_MODULE .text | ||
311 | #define __INITDATA_OR_MODULE .data | ||
312 | #define __INITRODATA_OR_MODULE .section ".rodata","a",%progbits | ||
308 | #else | 313 | #else |
309 | #define __init_or_module __init | 314 | #define __init_or_module __init |
310 | #define __initdata_or_module __initdata | 315 | #define __initdata_or_module __initdata |
316 | #define __initconst_or_module __initconst | ||
317 | #define __INIT_OR_MODULE __INIT | ||
318 | #define __INITDATA_OR_MODULE __INITDATA | ||
319 | #define __INITRODATA_OR_MODULE __INITRODATA | ||
311 | #endif /*CONFIG_MODULES*/ | 320 | #endif /*CONFIG_MODULES*/ |
312 | 321 | ||
313 | /* Functions marked as __devexit may be discarded at kernel link time, depending | 322 | /* Functions marked as __devexit may be discarded at kernel link time, depending |