projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a212ab
)
[ARM] Ensure machine information structures aren't optimised away
author
Russell King
<rmk@dyn-67.arm.linux.org.uk>
Sat, 29 Oct 2005 12:15:10 +0000
(13:15 +0100)
committer
Russell King
<rmk+kernel@arm.linux.org.uk>
Sat, 29 Oct 2005 12:15:10 +0000
(13:15 +0100)
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>
include/asm-arm/mach/arch.h
patch
|
blob
|
history
diff --git
a/include/asm-arm/mach/arch.h
b/include/asm-arm/mach/arch.h
index
7273c6f
..
eb262e0
100644
(file)
--- 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,