Commit 9c1f1257 authored by Ralf Baechle's avatar Ralf Baechle

[MIPS] Replace redundant declarations of _end by <asm/sections.h>.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent ba8990f2
/* /*
* arch/mips/dec/decstation.c * arch/mips/dec/decstation.c
*/ */
#include <asm/sections.h>
#define RELOC #define RELOC
#define INITRD #define INITRD
...@@ -24,7 +25,7 @@ ...@@ -24,7 +25,7 @@
#define INITRD_START (*(unsigned long *) (PARAM+0x218)) #define INITRD_START (*(unsigned long *) (PARAM+0x218))
#define INITRD_SIZE (*(unsigned long *) (PARAM+0x21c)) #define INITRD_SIZE (*(unsigned long *) (PARAM+0x21c))
extern int _ftext, _end; /* begin and end of kernel image */ extern int _ftext; /* begin and end of kernel image */
extern void kernel_entry(int, char **, unsigned long, int *); extern void kernel_entry(int, char **, unsigned long, int *);
void * memcpy(void * dest, const void *src, unsigned int count) void * memcpy(void * dest, const void *src, unsigned int count)
......
...@@ -34,13 +34,13 @@ ...@@ -34,13 +34,13 @@
#include <asm/bootinfo.h> #include <asm/bootinfo.h>
#include <linux/string.h> #include <linux/string.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <asm/sections.h>
#include <asm/it8172/it8172.h> #include <asm/it8172/it8172.h>
#include <asm/it8172/it8172_dbg.h> #include <asm/it8172/it8172_dbg.h>
int prom_argc; int prom_argc;
char **prom_argv, **prom_envp; char **prom_argv, **prom_envp;
extern char _end;
extern void __init prom_init_cmdline(void); extern void __init prom_init_cmdline(void);
extern unsigned long __init prom_get_memsize(void); extern unsigned long __init prom_get_memsize(void);
extern void __init it8172_init_ram_resource(unsigned long memsize); extern void __init it8172_init_ram_resource(unsigned long memsize);
......
...@@ -34,13 +34,13 @@ ...@@ -34,13 +34,13 @@
#include <asm/bootinfo.h> #include <asm/bootinfo.h>
#include <linux/string.h> #include <linux/string.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <asm/sections.h>
#include <asm/it8172/it8172.h> #include <asm/it8172/it8172.h>
#include <asm/it8172/it8172_dbg.h> #include <asm/it8172/it8172_dbg.h>
int prom_argc; int prom_argc;
char **prom_argv, **prom_envp; char **prom_argv, **prom_envp;
extern char _end;
extern void __init prom_init_cmdline(void); extern void __init prom_init_cmdline(void);
extern unsigned long __init prom_get_memsize(void); extern unsigned long __init prom_get_memsize(void);
extern void __init it8172_init_ram_resource(unsigned long memsize); extern void __init it8172_init_ram_resource(unsigned long memsize);
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <asm/bootinfo.h> #include <asm/bootinfo.h>
#include <asm/page.h> #include <asm/page.h>
#include <asm/sections.h>
#include <asm/mips-boards/prom.h> #include <asm/mips-boards/prom.h>
...@@ -46,9 +47,6 @@ static char *mtypes[3] = { ...@@ -46,9 +47,6 @@ static char *mtypes[3] = {
}; };
#endif #endif
/* References to section boundaries */
extern char _end;
struct prom_pmemblock * __init prom_getmdesc(void) struct prom_pmemblock * __init prom_getmdesc(void)
{ {
char *memsize_str; char *memsize_str;
...@@ -106,7 +104,7 @@ struct prom_pmemblock * __init prom_getmdesc(void) ...@@ -106,7 +104,7 @@ struct prom_pmemblock * __init prom_getmdesc(void)
mdesc[3].type = yamon_dontuse; mdesc[3].type = yamon_dontuse;
mdesc[3].base = 0x00100000; mdesc[3].base = 0x00100000;
mdesc[3].size = CPHYSADDR(PAGE_ALIGN(&_end)) - mdesc[3].base; mdesc[3].size = CPHYSADDR(PAGE_ALIGN((unsigned long)&_end)) - mdesc[3].base;
mdesc[4].type = yamon_free; mdesc[4].type = yamon_free;
mdesc[4].base = CPHYSADDR(PAGE_ALIGN(&_end)); mdesc[4].base = CPHYSADDR(PAGE_ALIGN(&_end));
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <asm/bootinfo.h> #include <asm/bootinfo.h>
#include <asm/page.h> #include <asm/page.h>
#include <asm/sections.h>
#include <asm/mips-boards/prom.h> #include <asm/mips-boards/prom.h>
...@@ -39,9 +40,6 @@ static char *mtypes[3] = { ...@@ -39,9 +40,6 @@ static char *mtypes[3] = {
}; };
#endif #endif
/* References to section boundaries */
extern char _end;
struct prom_pmemblock * __init prom_getmdesc(void) struct prom_pmemblock * __init prom_getmdesc(void)
{ {
unsigned int memsize; unsigned int memsize;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment