aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/init.h
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2008-01-24 16:16:20 -0500
committerSam Ravnborg <sam@ravnborg.org>2008-01-28 17:21:18 -0500
commit3ff6eecca4e5c49a5d1dd8b58ea0e20102ce08f0 (patch)
tree9af53a5ce0054520be6d572f988a76f3ab4ef0c0 /include/linux/init.h
parentbc395add945659e04cc7cf250755ba0edc1a9fdc (diff)
remove __attribute_used__
Remove the deprecated __attribute_used__. [Introduce __section in a few places to silence checkpatch /sam] Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'include/linux/init.h')
-rw-r--r--include/linux/init.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/linux/init.h b/include/linux/init.h
index dcb66c76bd48..dde1eaa7766b 100644
--- a/include/linux/init.h
+++ b/include/linux/init.h
@@ -43,7 +43,7 @@
43#define __init __section(.init.text) __cold 43#define __init __section(.init.text) __cold
44#define __initdata __section(.init.data) 44#define __initdata __section(.init.data)
45#define __exitdata __section(.exit.data) 45#define __exitdata __section(.exit.data)
46#define __exit_call __attribute_used__ __section(.exitcall.exit) 46#define __exit_call __used __section(.exitcall.exit)
47 47
48/* modpost check for section mismatches during the kernel build. 48/* modpost check for section mismatches during the kernel build.
49 * A section mismatch happens when there are references from a 49 * A section mismatch happens when there are references from a
@@ -144,7 +144,7 @@ void prepare_namespace(void);
144 */ 144 */
145 145
146#define __define_initcall(level,fn,id) \ 146#define __define_initcall(level,fn,id) \
147 static initcall_t __initcall_##fn##id __attribute_used__ \ 147 static initcall_t __initcall_##fn##id __used \
148 __attribute__((__section__(".initcall" level ".init"))) = fn 148 __attribute__((__section__(".initcall" level ".init"))) = fn
149 149
150/* 150/*
@@ -178,11 +178,11 @@ void prepare_namespace(void);
178 178
179#define console_initcall(fn) \ 179#define console_initcall(fn) \
180 static initcall_t __initcall_##fn \ 180 static initcall_t __initcall_##fn \
181 __attribute_used__ __section(.con_initcall.init)=fn 181 __used __section(.con_initcall.init) = fn
182 182
183#define security_initcall(fn) \ 183#define security_initcall(fn) \
184 static initcall_t __initcall_##fn \ 184 static initcall_t __initcall_##fn \
185 __attribute_used__ __section(.security_initcall.init) = fn 185 __used __section(.security_initcall.init) = fn
186 186
187struct obs_kernel_param { 187struct obs_kernel_param {
188 const char *str; 188 const char *str;
@@ -199,8 +199,7 @@ struct obs_kernel_param {
199#define __setup_param(str, unique_id, fn, early) \ 199#define __setup_param(str, unique_id, fn, early) \
200 static char __setup_str_##unique_id[] __initdata __aligned(1) = str; \ 200 static char __setup_str_##unique_id[] __initdata __aligned(1) = str; \
201 static struct obs_kernel_param __setup_##unique_id \ 201 static struct obs_kernel_param __setup_##unique_id \
202 __attribute_used__ \ 202 __used __section(.init.setup) \
203 __section(.init.setup) \
204 __attribute__((aligned((sizeof(long))))) \ 203 __attribute__((aligned((sizeof(long))))) \
205 = { __setup_str_##unique_id, fn, early } 204 = { __setup_str_##unique_id, fn, early }
206 205