diff options
author | Steve French <sfrench@us.ibm.com> | 2008-02-06 11:04:00 -0500 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2008-02-06 11:04:00 -0500 |
commit | f315ccb3e679f271583f2a4f463ad9b65665b751 (patch) | |
tree | 44eb52102587d7b0bb592464cef6ec04bcac8b90 /arch/um/include/init.h | |
parent | ead03e30b050d6dda769e7e9b071c5fa720bf8d2 (diff) | |
parent | 551e4fb2465b87de9d4aa1669b27d624435443bb (diff) |
Merge branch 'master' of /pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'arch/um/include/init.h')
-rw-r--r-- | arch/um/include/init.h | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/arch/um/include/init.h b/arch/um/include/init.h index cebc6cae9190..b00a95741d41 100644 --- a/arch/um/include/init.h +++ b/arch/um/include/init.h | |||
@@ -40,6 +40,20 @@ | |||
40 | typedef int (*initcall_t)(void); | 40 | typedef int (*initcall_t)(void); |
41 | typedef void (*exitcall_t)(void); | 41 | typedef void (*exitcall_t)(void); |
42 | 42 | ||
43 | #ifndef __KERNEL__ | ||
44 | #ifndef __section | ||
45 | # define __section(S) __attribute__ ((__section__(#S))) | ||
46 | #endif | ||
47 | |||
48 | #if __GNUC_MINOR__ >= 3 | ||
49 | # define __used __attribute__((__used__)) | ||
50 | #else | ||
51 | # define __used __attribute__((__unused__)) | ||
52 | #endif | ||
53 | |||
54 | #else | ||
55 | #include <linux/compiler.h> | ||
56 | #endif | ||
43 | /* These are for everybody (although not all archs will actually | 57 | /* These are for everybody (although not all archs will actually |
44 | discard it in modules) */ | 58 | discard it in modules) */ |
45 | #define __init __section(.init.text) | 59 | #define __init __section(.init.text) |
@@ -127,14 +141,3 @@ extern struct uml_param __uml_setup_start, __uml_setup_end; | |||
127 | #endif | 141 | #endif |
128 | 142 | ||
129 | #endif /* _LINUX_UML_INIT_H */ | 143 | #endif /* _LINUX_UML_INIT_H */ |
130 | |||
131 | /* | ||
132 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
133 | * Emacs will notice this stuff at the end of the file and automatically | ||
134 | * adjust the settings for this buffer only. This must remain at the end | ||
135 | * of the file. | ||
136 | * --------------------------------------------------------------------------- | ||
137 | * Local variables: | ||
138 | * c-file-style: "linux" | ||
139 | * End: | ||
140 | */ | ||