m68knommu: use generic section names in setup code
authorGreg Ungerer <gerg@uclinux.org>
Mon, 22 Aug 2011 07:07:40 +0000 (17:07 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Tue, 18 Oct 2011 04:22:26 +0000 (14:22 +1000)
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 <gerg@uclinux.org>
arch/m68k/include/asm/sections.h
arch/m68k/kernel/setup_no.c

index d64967ecfec647e19e02caa8e279f4ea437aeb9e..5277e52715ec27cfd20d3c25dee440334ae510d9 100644 (file)
@@ -3,4 +3,6 @@
 
 #include <asm-generic/sections.h>
 
+extern char _sbss[], _ebss[];
+
 #endif /* _ASM_M68K_SECTIONS_H */
index 16b2de7f51013b10d17033bc4520b741d71fac4f..d5a616f6fb78045c9ae78423d98ae71838f5c1c2 100644 (file)
@@ -36,6 +36,7 @@
 #include <asm/irq.h>
 #include <asm/machdep.h>
 #include <asm/pgtable.h>
+#include <asm/sections.h>
 
 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)
This page took 0.025629 seconds and 5 git commands to generate.