Skip to contentSkip to conversation

m68knommu: use generic section names in setup code

PATCH New [email protected] 1 participant 1 message Aug 23, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 m68knommu: use generic section names in setup code

From: Greg Ungerer <[email protected]>

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.

---
 arch/m68k/include/asm/sections.h |    2 ++
 arch/m68k/kernel/setup_no.c      |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)
arch/m68k/include/asm/sections.h +2 -0
index d64967e..5277e52 100644
@@ -3,4 +3,6 @@
 
 #include <asm-generic/sections.h>
 
+extern char _sbss[], _ebss[];
+
 #endif /* _ASM_M68K_SECTIONS_H */
arch/m68k/kernel/setup_no.c +1 -1
index 16b2de7..d5a616f 100644
@@ -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)
Signature · 1 line
1.7.0.4