diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-07 14:01:19 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-07 14:01:19 -0400 |
commit | 8dce5f3dee21bf976193ddb06426b9727cf5d1a2 (patch) | |
tree | a2e44ee8cc3283b258ff05ad9a5065a5fc2b39ac /include/asm-generic | |
parent | 21884a83b2192a00885d7244a1dda32debd2fbc7 (diff) | |
parent | e24f6628811e2d4531b443684b598f7050932012 (diff) |
Merge branch 'cpuinit-delete' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux
Pull first stage of __cpuinit removal from Paul Gortmaker:
"The two commits here 1) dummy out all the __cpuinit macros so that we
no longer generate such sections, and then 2) remove all the section
processing that we used to do for those sections.
This makes all the __cpuinit and friends no-ops, so that we can remove
the use cases of it at our leisure. Expect stage 2, which does the
tree wide removal sweep at the end of the merge window."
* 'cpuinit-delete' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux:
modpost: remove all traces of cpuinit/cpuexit sections
init.h: remove __cpuinit sections from the kernel
Diffstat (limited to 'include/asm-generic')
-rw-r--r-- | include/asm-generic/vmlinux.lds.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index c74d88baea60..69732d279e8b 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h | |||
@@ -174,8 +174,6 @@ | |||
174 | *(.data) \ | 174 | *(.data) \ |
175 | *(.ref.data) \ | 175 | *(.ref.data) \ |
176 | *(.data..shared_aligned) /* percpu related */ \ | 176 | *(.data..shared_aligned) /* percpu related */ \ |
177 | CPU_KEEP(init.data) \ | ||
178 | CPU_KEEP(exit.data) \ | ||
179 | MEM_KEEP(init.data) \ | 177 | MEM_KEEP(init.data) \ |
180 | MEM_KEEP(exit.data) \ | 178 | MEM_KEEP(exit.data) \ |
181 | *(.data.unlikely) \ | 179 | *(.data.unlikely) \ |
@@ -355,8 +353,6 @@ | |||
355 | /* __*init sections */ \ | 353 | /* __*init sections */ \ |
356 | __init_rodata : AT(ADDR(__init_rodata) - LOAD_OFFSET) { \ | 354 | __init_rodata : AT(ADDR(__init_rodata) - LOAD_OFFSET) { \ |
357 | *(.ref.rodata) \ | 355 | *(.ref.rodata) \ |
358 | CPU_KEEP(init.rodata) \ | ||
359 | CPU_KEEP(exit.rodata) \ | ||
360 | MEM_KEEP(init.rodata) \ | 356 | MEM_KEEP(init.rodata) \ |
361 | MEM_KEEP(exit.rodata) \ | 357 | MEM_KEEP(exit.rodata) \ |
362 | } \ | 358 | } \ |
@@ -397,8 +393,6 @@ | |||
397 | *(.text.hot) \ | 393 | *(.text.hot) \ |
398 | *(.text) \ | 394 | *(.text) \ |
399 | *(.ref.text) \ | 395 | *(.ref.text) \ |
400 | CPU_KEEP(init.text) \ | ||
401 | CPU_KEEP(exit.text) \ | ||
402 | MEM_KEEP(init.text) \ | 396 | MEM_KEEP(init.text) \ |
403 | MEM_KEEP(exit.text) \ | 397 | MEM_KEEP(exit.text) \ |
404 | *(.text.unlikely) | 398 | *(.text.unlikely) |
@@ -482,14 +476,12 @@ | |||
482 | /* init and exit section handling */ | 476 | /* init and exit section handling */ |
483 | #define INIT_DATA \ | 477 | #define INIT_DATA \ |
484 | *(.init.data) \ | 478 | *(.init.data) \ |
485 | CPU_DISCARD(init.data) \ | ||
486 | MEM_DISCARD(init.data) \ | 479 | MEM_DISCARD(init.data) \ |
487 | KERNEL_CTORS() \ | 480 | KERNEL_CTORS() \ |
488 | MCOUNT_REC() \ | 481 | MCOUNT_REC() \ |
489 | *(.init.rodata) \ | 482 | *(.init.rodata) \ |
490 | FTRACE_EVENTS() \ | 483 | FTRACE_EVENTS() \ |
491 | TRACE_SYSCALLS() \ | 484 | TRACE_SYSCALLS() \ |
492 | CPU_DISCARD(init.rodata) \ | ||
493 | MEM_DISCARD(init.rodata) \ | 485 | MEM_DISCARD(init.rodata) \ |
494 | CLK_OF_TABLES() \ | 486 | CLK_OF_TABLES() \ |
495 | CLKSRC_OF_TABLES() \ | 487 | CLKSRC_OF_TABLES() \ |
@@ -498,19 +490,15 @@ | |||
498 | 490 | ||
499 | #define INIT_TEXT \ | 491 | #define INIT_TEXT \ |
500 | *(.init.text) \ | 492 | *(.init.text) \ |
501 | CPU_DISCARD(init.text) \ | ||
502 | MEM_DISCARD(init.text) | 493 | MEM_DISCARD(init.text) |
503 | 494 | ||
504 | #define EXIT_DATA \ | 495 | #define EXIT_DATA \ |
505 | *(.exit.data) \ | 496 | *(.exit.data) \ |
506 | CPU_DISCARD(exit.data) \ | ||
507 | CPU_DISCARD(exit.rodata) \ | ||
508 | MEM_DISCARD(exit.data) \ | 497 | MEM_DISCARD(exit.data) \ |
509 | MEM_DISCARD(exit.rodata) | 498 | MEM_DISCARD(exit.rodata) |
510 | 499 | ||
511 | #define EXIT_TEXT \ | 500 | #define EXIT_TEXT \ |
512 | *(.exit.text) \ | 501 | *(.exit.text) \ |
513 | CPU_DISCARD(exit.text) \ | ||
514 | MEM_DISCARD(exit.text) | 502 | MEM_DISCARD(exit.text) |
515 | 503 | ||
516 | #define EXIT_CALL \ | 504 | #define EXIT_CALL \ |