Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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

parent ba8990f2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
/*
 * arch/mips/dec/decstation.c
 */
#include <asm/sections.h>

#define RELOC
#define INITRD
@@ -24,7 +25,7 @@
#define INITRD_START (*(unsigned long *) (PARAM+0x218))
#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 *);

void * memcpy(void * dest, const void *src, unsigned int count)
+1 −1
Original line number Diff line number Diff line
@@ -34,13 +34,13 @@
#include <asm/bootinfo.h>
#include <linux/string.h>
#include <linux/kernel.h>
#include <asm/sections.h>
#include <asm/it8172/it8172.h>
#include <asm/it8172/it8172_dbg.h>

int prom_argc;
char **prom_argv, **prom_envp;

extern char _end;
extern void  __init prom_init_cmdline(void);
extern unsigned long __init prom_get_memsize(void);
extern void __init it8172_init_ram_resource(unsigned long memsize);
+1 −1
Original line number Diff line number Diff line
@@ -34,13 +34,13 @@
#include <asm/bootinfo.h>
#include <linux/string.h>
#include <linux/kernel.h>
#include <asm/sections.h>
#include <asm/it8172/it8172.h>
#include <asm/it8172/it8172_dbg.h>

int prom_argc;
char **prom_argv, **prom_envp;

extern char _end;
extern void  __init prom_init_cmdline(void);
extern unsigned long __init prom_get_memsize(void);
extern void __init it8172_init_ram_resource(unsigned long memsize);
+2 −4
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@

#include <asm/bootinfo.h>
#include <asm/page.h>
#include <asm/sections.h>

#include <asm/mips-boards/prom.h>

@@ -46,9 +47,6 @@ static char *mtypes[3] = {
};
#endif

/* References to section boundaries */
extern char _end;

struct prom_pmemblock * __init prom_getmdesc(void)
{
	char *memsize_str;
@@ -106,7 +104,7 @@ struct prom_pmemblock * __init prom_getmdesc(void)

	mdesc[3].type = yamon_dontuse;
	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].base = CPHYSADDR(PAGE_ALIGN(&_end));
+1 −3
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@

#include <asm/bootinfo.h>
#include <asm/page.h>
#include <asm/sections.h>

#include <asm/mips-boards/prom.h>

@@ -39,9 +40,6 @@ static char *mtypes[3] = {
};
#endif

/* References to section boundaries */
extern char _end;

struct prom_pmemblock * __init prom_getmdesc(void)
{
	unsigned int memsize;