aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-arm/mach/arch.h
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2005-10-29 13:15:10 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2005-10-29 13:15:10 +0100
commitfb31690fbac6f4055c1765522752e4746759f5de (patch)
tree6b8b2375f122a3771aadebeba7344829a6ae88ed /include/asm-arm/mach/arch.h
parentMerge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6 (diff)
downloadlinux-dev-fb31690fbac6f4055c1765522752e4746759f5de.tar.xz
linux-dev-fb31690fbac6f4055c1765522752e4746759f5de.zip
[ARM] Ensure machine information structures aren't optimised away
Since the machine information structures are now static, the compiler might optimise them away. Mark them with __attribute_used__ to prevent this occuring. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm/mach/arch.h')
-rw-r--r--include/asm-arm/mach/arch.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-arm/mach/arch.h b/include/asm-arm/mach/arch.h
index 7273c6fd95b5..eb262e078c46 100644
--- a/include/asm-arm/mach/arch.h
+++ b/include/asm-arm/mach/arch.h
@@ -50,6 +50,7 @@ struct machine_desc {
*/
#define MACHINE_START(_type,_name) \
static const struct machine_desc __mach_desc_##_type \
+ __attribute_used__ \
__attribute__((__section__(".arch.info.init"))) = { \
.nr = MACH_TYPE_##_type, \
.name = _name,