aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/init.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-10-05 14:09:16 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-05 14:09:16 -0400
commit11126c611e10abb18b6f1ed0300c0548c3906b54 (patch)
tree246227ad730c1e68f5a9c03db57cd4592abe7687 /include/linux/init.h
parent67966e088b0c7dc926f4ce19565ebf208e18d058 (diff)
parent33e2a4227ddff7c18921ac175fae3ab0e3ff8a76 (diff)
Merge branch 'akpm' (Andrew's patch-bomb)
Merge misc patches from Andrew Morton: "The MM tree is rather stuck while I wait to find out what the heck is happening with sched/numa. Probably I'll need to route around all the code which was added to -next, sigh. So this is "everything else", or at least most of it - other small bits are still awaiting resolutions of various kinds." * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (180 commits) lib/decompress.c add __init to decompress_method and data kernel/resource.c: fix stack overflow in __reserve_region_with_split() omfs: convert to use beXX_add_cpu() taskstats: cgroupstats_user_cmd() may leak on error aoe: update aoe-internal version number to 50 aoe: update documentation to better reflect aoe-plus-udev usage aoe: remove unused code aoe: make dynamic block minor numbers the default aoe: update and specify AoE address guards and error messages aoe: retain static block device numbers for backwards compatibility aoe: support more AoE addresses with dynamic block device minor numbers aoe: update documentation with new URL and VM settings reference aoe: update copyright year in touched files aoe: update internal version number to 49 aoe: remove unused code and add cosmetic improvements aoe: increase net_device reference count while using it aoe: associate frames with the AoE storage target aoe: disallow unsupported AoE minor addresses aoe: do revalidation steps in order aoe: failover remote interface based on aoe_deadsecs parameter ...
Diffstat (limited to 'include/linux/init.h')
-rw-r--r--include/linux/init.h27
1 files changed, 19 insertions, 8 deletions
diff --git a/include/linux/init.h b/include/linux/init.h
index 5e664f671615..e59041e21df3 100644
--- a/include/linux/init.h
+++ b/include/linux/init.h
@@ -43,11 +43,22 @@
43 discard it in modules) */ 43 discard it in modules) */
44#define __init __section(.init.text) __cold notrace 44#define __init __section(.init.text) __cold notrace
45#define __initdata __section(.init.data) 45#define __initdata __section(.init.data)
46#define __initconst __section(.init.rodata) 46#define __initconst __constsection(.init.rodata)
47#define __exitdata __section(.exit.data) 47#define __exitdata __section(.exit.data)
48#define __exit_call __used __section(.exitcall.exit) 48#define __exit_call __used __section(.exitcall.exit)
49 49
50/* 50/*
51 * Some architecture have tool chains which do not handle rodata attributes
52 * correctly. For those disable special sections for const, so that other
53 * architectures can annotate correctly.
54 */
55#ifdef CONFIG_BROKEN_RODATA
56#define __constsection(x)
57#else
58#define __constsection(x) __section(x)
59#endif
60
61/*
51 * modpost check for section mismatches during the kernel build. 62 * modpost check for section mismatches during the kernel build.
52 * A section mismatch happens when there are references from a 63 * A section mismatch happens when there are references from a
53 * code or data section to an init section (both code or data). 64 * code or data section to an init section (both code or data).
@@ -66,7 +77,7 @@
66 */ 77 */
67#define __ref __section(.ref.text) noinline 78#define __ref __section(.ref.text) noinline
68#define __refdata __section(.ref.data) 79#define __refdata __section(.ref.data)
69#define __refconst __section(.ref.rodata) 80#define __refconst __constsection(.ref.rodata)
70 81
71/* compatibility defines */ 82/* compatibility defines */
72#define __init_refok __ref 83#define __init_refok __ref
@@ -85,26 +96,26 @@
85/* Used for HOTPLUG */ 96/* Used for HOTPLUG */
86#define __devinit __section(.devinit.text) __cold notrace 97#define __devinit __section(.devinit.text) __cold notrace
87#define __devinitdata __section(.devinit.data) 98#define __devinitdata __section(.devinit.data)
88#define __devinitconst __section(.devinit.rodata) 99#define __devinitconst __constsection(.devinit.rodata)
89#define __devexit __section(.devexit.text) __exitused __cold notrace 100#define __devexit __section(.devexit.text) __exitused __cold notrace
90#define __devexitdata __section(.devexit.data) 101#define __devexitdata __section(.devexit.data)
91#define __devexitconst __section(.devexit.rodata) 102#define __devexitconst __constsection(.devexit.rodata)
92 103
93/* Used for HOTPLUG_CPU */ 104/* Used for HOTPLUG_CPU */
94#define __cpuinit __section(.cpuinit.text) __cold notrace 105#define __cpuinit __section(.cpuinit.text) __cold notrace
95#define __cpuinitdata __section(.cpuinit.data) 106#define __cpuinitdata __section(.cpuinit.data)
96#define __cpuinitconst __section(.cpuinit.rodata) 107#define __cpuinitconst __constsection(.cpuinit.rodata)
97#define __cpuexit __section(.cpuexit.text) __exitused __cold notrace 108#define __cpuexit __section(.cpuexit.text) __exitused __cold notrace
98#define __cpuexitdata __section(.cpuexit.data) 109#define __cpuexitdata __section(.cpuexit.data)
99#define __cpuexitconst __section(.cpuexit.rodata) 110#define __cpuexitconst __constsection(.cpuexit.rodata)
100 111
101/* Used for MEMORY_HOTPLUG */ 112/* Used for MEMORY_HOTPLUG */
102#define __meminit __section(.meminit.text) __cold notrace 113#define __meminit __section(.meminit.text) __cold notrace
103#define __meminitdata __section(.meminit.data) 114#define __meminitdata __section(.meminit.data)
104#define __meminitconst __section(.meminit.rodata) 115#define __meminitconst __constsection(.meminit.rodata)
105#define __memexit __section(.memexit.text) __exitused __cold notrace 116#define __memexit __section(.memexit.text) __exitused __cold notrace
106#define __memexitdata __section(.memexit.data) 117#define __memexitdata __section(.memexit.data)
107#define __memexitconst __section(.memexit.rodata) 118#define __memexitconst __constsection(.memexit.rodata)
108 119
109/* For assembly routines */ 120/* For assembly routines */
110#define __HEAD .section ".head.text","ax" 121#define __HEAD .section ".head.text","ax"