summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/module.c
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2008-12-01 11:53:07 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-12-01 11:53:07 +0000
commit37efe6427dd50e889473fb3c7fcec02dbbd098eb (patch)
treed5a6b3e6fbd5d60a1a145f5801002e96bcb9af9e /arch/arm/kernel/module.c
parent112243034cec7c3ef0499fdebf39218714da453d (diff)
downloadlinux-37efe6427dd50e889473fb3c7fcec02dbbd098eb.tar.gz
linux-37efe6427dd50e889473fb3c7fcec02dbbd098eb.tar.bz2
linux-37efe6427dd50e889473fb3c7fcec02dbbd098eb.zip
[ARM] use asm/sections.h
Update to use the asm/sections.h header rather than declaring these symbols ourselves. Change __data_start to _data to conform with the naming found within asm/sections.h. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel/module.c')
-rw-r--r--arch/arm/kernel/module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/kernel/module.c b/arch/arm/kernel/module.c
index b8d965dcd6fd..dab48f27263f 100644
--- a/arch/arm/kernel/module.c
+++ b/arch/arm/kernel/module.c
@@ -21,6 +21,7 @@
#include <linux/string.h>
#include <asm/pgtable.h>
+#include <asm/sections.h>
#ifdef CONFIG_XIP_KERNEL
/*
@@ -29,9 +30,8 @@
* MODULES_VADDR is redefined here and not in asm/memory.h to avoid
* recompiling the whole kernel when CONFIG_XIP_KERNEL is turned on/off.
*/
-extern void _etext;
#undef MODULES_VADDR
-#define MODULES_VADDR (((unsigned long)&_etext + ~PGDIR_MASK) & PGDIR_MASK)
+#define MODULES_VADDR (((unsigned long)_etext + ~PGDIR_MASK) & PGDIR_MASK)
#endif
#ifdef CONFIG_MMU