diff options
author | Andi Kleen <ak@suse.de> | 2005-11-05 11:25:53 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-14 22:55:14 -0500 |
commit | 2bc0414ee04fd8bb798760801f5d7476dff44241 (patch) | |
tree | 3ae48fd461dca1f7f46f440325c674717a36f693 /arch/x86_64/mm/init.c | |
parent | 6b75aeedde1e8a8513393d3c1367bf81bc5b0c67 (diff) |
[PATCH] x86_64: Only use asm/sections.h to declare section symbols
Adding __initdata_* to asm-generic/sections.h
Replaces a lot of open coded externs in arch/x86_64/*
I had to change __bss_end to __bss_stop to match the other architectures.
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/x86_64/mm/init.c')
-rw-r--r-- | arch/x86_64/mm/init.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/arch/x86_64/mm/init.c b/arch/x86_64/mm/init.c index be483a1d7b54..489e18df1fe9 100644 --- a/arch/x86_64/mm/init.c +++ b/arch/x86_64/mm/init.c | |||
@@ -36,6 +36,7 @@ | |||
36 | #include <asm/mmu_context.h> | 36 | #include <asm/mmu_context.h> |
37 | #include <asm/proto.h> | 37 | #include <asm/proto.h> |
38 | #include <asm/smp.h> | 38 | #include <asm/smp.h> |
39 | #include <asm/sections.h> | ||
39 | 40 | ||
40 | #ifndef Dprintk | 41 | #ifndef Dprintk |
41 | #define Dprintk(x...) | 42 | #define Dprintk(x...) |
@@ -45,8 +46,6 @@ | |||
45 | extern int swiotlb; | 46 | extern int swiotlb; |
46 | #endif | 47 | #endif |
47 | 48 | ||
48 | extern char _stext[]; | ||
49 | |||
50 | static unsigned long dma_reserve __initdata; | 49 | static unsigned long dma_reserve __initdata; |
51 | 50 | ||
52 | DEFINE_PER_CPU(struct mmu_gather, mmu_gathers); | 51 | DEFINE_PER_CPU(struct mmu_gather, mmu_gathers); |
@@ -88,9 +87,6 @@ void show_mem(void) | |||
88 | 87 | ||
89 | /* References to section boundaries */ | 88 | /* References to section boundaries */ |
90 | 89 | ||
91 | extern char _text, _etext, _edata, __bss_start, _end[]; | ||
92 | extern char __init_begin, __init_end; | ||
93 | |||
94 | int after_bootmem; | 90 | int after_bootmem; |
95 | 91 | ||
96 | static void *spp_getpage(void) | 92 | static void *spp_getpage(void) |
@@ -491,8 +487,6 @@ void __init mem_init(void) | |||
491 | #endif | 487 | #endif |
492 | } | 488 | } |
493 | 489 | ||
494 | extern char __initdata_begin[], __initdata_end[]; | ||
495 | |||
496 | void free_initmem(void) | 490 | void free_initmem(void) |
497 | { | 491 | { |
498 | unsigned long addr; | 492 | unsigned long addr; |
@@ -506,7 +500,7 @@ void free_initmem(void) | |||
506 | totalram_pages++; | 500 | totalram_pages++; |
507 | } | 501 | } |
508 | memset(__initdata_begin, 0xba, __initdata_end - __initdata_begin); | 502 | memset(__initdata_begin, 0xba, __initdata_end - __initdata_begin); |
509 | printk ("Freeing unused kernel memory: %luk freed\n", (&__init_end - &__init_begin) >> 10); | 503 | printk ("Freeing unused kernel memory: %luk freed\n", (__init_end - __init_begin) >> 10); |
510 | } | 504 | } |
511 | 505 | ||
512 | #ifdef CONFIG_BLK_DEV_INITRD | 506 | #ifdef CONFIG_BLK_DEV_INITRD |