From: Greg Ungerer Date: Mon, 22 Aug 2011 07:07:40 +0000 (+1000) Subject: m68knommu: use generic section names in setup code X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c06e9bb427bc8ae74b43a99888da077c20747165;p=linux.git m68knommu: use generic section names in setup code We should be including and using sections.h to get at the extern definitions of the linker sections in the m68knommu startup code. Not defining them locally. Signed-off-by: Greg Ungerer --- diff --git a/arch/m68k/include/asm/sections.h b/arch/m68k/include/asm/sections.h index d64967ecfec64..5277e52715ec2 100644 --- a/arch/m68k/include/asm/sections.h +++ b/arch/m68k/include/asm/sections.h @@ -3,4 +3,6 @@ #include +extern char _sbss[], _ebss[]; + #endif /* _ASM_M68K_SECTIONS_H */ diff --git a/arch/m68k/kernel/setup_no.c b/arch/m68k/kernel/setup_no.c index 16b2de7f51013..d5a616f6fb780 100644 --- a/arch/m68k/kernel/setup_no.c +++ b/arch/m68k/kernel/setup_no.c @@ -36,6 +36,7 @@ #include #include #include +#include unsigned long memory_start; unsigned long memory_end; @@ -80,7 +81,6 @@ void (*mach_power_off)(void); #define CPU_INSTR_PER_JIFFY 16 #endif -extern int _stext, _etext, _sdata, _edata, _sbss, _ebss, _end; extern int _ramstart, _ramend; #if defined(CONFIG_UBOOT)