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

Commit 363737d6 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven
Browse files

mtd/uclinux: Use generic __bss_stop instead of _ebss



The standard (see BSS_SECTION() in <asm-generic/vmlinux.lds.h> and
<asm-generic/sections.h>) symbol for the end of BSS is __bss_stop.
This allows to remove all local declarations that have been added to
several architectures just to please CONFIG_MTD_UCLINUX.

Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Acked-by: default avatarPaul Mundt <lethal@linux-sh.org>
Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
Acked-by: default avatarMichal Simek <monstr@monstr.eu>
Acked-by: default avatarGreg Ungerer <gerg@uclinux.org>
parent dfe1d26d
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -52,7 +52,6 @@ EXPORT_SYMBOL(reserved_mem_dcache_on);
#ifdef CONFIG_MTD_UCLINUX
extern struct map_info uclinux_ram_map;
unsigned long memory_mtd_end, memory_mtd_start, mtd_size;
unsigned long _ebss;
EXPORT_SYMBOL(memory_mtd_end);
EXPORT_SYMBOL(memory_mtd_start);
EXPORT_SYMBOL(mtd_size);
+0 −4
Original line number Diff line number Diff line
@@ -18,10 +18,6 @@ extern char _ssbss[], _esbss[];
extern unsigned long __ivt_start[], __ivt_end[];
extern char _etext[], _stext[];

#  ifdef CONFIG_MTD_UCLINUX
extern char *_ebss;
#  endif

extern u32 _fdt_start[], _fdt_end[];

# endif /* !__ASSEMBLY__ */
+0 −3
Original line number Diff line number Diff line
@@ -21,9 +21,6 @@
#include <linux/ftrace.h>
#include <linux/uaccess.h>

extern char *_ebss;
EXPORT_SYMBOL_GPL(_ebss);

#ifdef CONFIG_FUNCTION_TRACER
extern void _mcount(void);
EXPORT_SYMBOL(_mcount);
+2 −2
Original line number Diff line number Diff line
@@ -121,7 +121,7 @@ void __init machine_early_init(const char *cmdline, unsigned int ram,

	/* Move ROMFS out of BSS before clearing it */
	if (romfs_size > 0) {
		memmove(&_ebss, (int *)romfs_base, romfs_size);
		memmove(&__bss_stop, (int *)romfs_base, romfs_size);
		klimit += romfs_size;
	}
#endif
@@ -165,7 +165,7 @@ void __init machine_early_init(const char *cmdline, unsigned int ram,
	BUG_ON(romfs_size < 0); /* What else can we do? */

	printk("Moved 0x%08x bytes from 0x%08x to 0x%08x\n",
			romfs_size, romfs_base, (unsigned)&_ebss);
			romfs_size, romfs_base, (unsigned)&__bss_stop);

	printk("New klimit: 0x%08x\n", (unsigned)klimit);
#endif
+0 −1
Original line number Diff line number Diff line
@@ -131,7 +131,6 @@ SECTIONS {
			*(COMMON)
		. = ALIGN (4) ;
		__bss_stop = . ;
		_ebss = . ;
	}
	. = ALIGN(PAGE_SIZE);
	_end = .;
Loading