]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
m68knommu: create common externs for _ram* vars
authorGreg Ungerer <gerg@uclinux.org>
Tue, 23 Aug 2011 05:42:36 +0000 (15:42 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Wed, 24 Aug 2011 01:22:27 +0000 (11:22 +1000)
Create common extern definitions of _rambase, _ramstart and _ramend
instead of them being externed when used in code.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
arch/m68k/include/asm/page_no.h
arch/m68k/kernel/setup_no.c
arch/m68k/mm/init_no.c

index 90595721185fc20a4b3ba79cacab1461fd50e3b4..a8d1c60eb9cec846ad26662497513f676623c7e1 100644 (file)
@@ -5,6 +5,9 @@
  
 extern unsigned long memory_start;
 extern unsigned long memory_end;
+extern unsigned long _rambase;
+extern unsigned long _ramstart;
+extern unsigned long _ramend;
 
 #define get_user_page(vaddr)           __get_free_page(GFP_KERNEL)
 #define free_user_page(page, addr)     free_page(addr)
index d5a616f6fb78045c9ae78423d98ae71838f5c1c2..2ed8c0fb1517defe078c1aa38b8f4b7fbf9bf865 100644 (file)
@@ -81,8 +81,6 @@ void (*mach_power_off)(void);
 #define        CPU_INSTR_PER_JIFFY     16
 #endif
 
-extern int _ramstart, _ramend;
-
 #if defined(CONFIG_UBOOT)
 /*
  * parse_uboot_commandline
index 3cf5a50b1494b6fe31a59b593bfdf98b641c4f52..1e33d39ca9a029d51bcd730f59eb4f725f4cecda 100644 (file)
@@ -76,7 +76,6 @@ void __init mem_init(void)
 {
        int codek = 0, datak = 0, initk = 0;
        unsigned long tmp;
-       extern unsigned int _ramend, _rambase;
        unsigned long len = _ramend - _rambase;
        unsigned long start_mem = memory_start; /* DAVIDM - these must start at end of kernel */
        unsigned long end_mem   = memory_end; /* DAVIDM - this must not include kernel stack at top */