Skip to content

Commit

Permalink
m68knommu: create common externs for _ram* vars
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Ungerer committed Oct 18, 2011
1 parent 3998bfb commit 7a79a80
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions arch/m68k/include/asm/page_no.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions arch/m68k/kernel/setup_no.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion arch/m68k/mm/init_no.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 7a79a80

Please sign in to comment.