Skip to content

Commit e001e52

Browse files
committed
[MIPS] Replace use of stext with _stext.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 348c913 commit e001e52

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎arch/mips/kernel/head.S‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@
138138
.fill 0x400
139139
#endif
140140

141-
EXPORT(stext) # used for profiling
142141
EXPORT(_stext)
143142

144143
#ifndef CONFIG_BOOT_RAW

‎arch/mips/mm/c-r4k.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <asm/page.h>
2424
#include <asm/pgtable.h>
2525
#include <asm/r4kcache.h>
26+
#include <asm/sections.h>
2627
#include <asm/system.h>
2728
#include <asm/mmu_context.h>
2829
#include <asm/war.h>
@@ -1010,7 +1011,6 @@ static void __init probe_pcache(void)
10101011
*/
10111012
static int __init probe_scache(void)
10121013
{
1013-
extern unsigned long stext;
10141014
unsigned long flags, addr, begin, end, pow2;
10151015
unsigned int config = read_c0_config();
10161016
struct cpuinfo_mips *c = &current_cpu_data;
@@ -1019,7 +1019,7 @@ static int __init probe_scache(void)
10191019
if (config & CONF_SC)
10201020
return 0;
10211021

1022-
begin = (unsigned long) &stext;
1022+
begin = (unsigned long) &_stext;
10231023
begin &= ~((4 * 1024 * 1024) - 1);
10241024
end = begin + (4 * 1024 * 1024);
10251025

0 commit comments

Comments
 (0)