aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorTim Gardner <tim.gardner@canonical.com>2012-09-14 08:44:15 -0600
committerJohn Rigby <john.rigby@linaro.org>2012-11-14 18:19:39 -0700
commit7c7ea43dd933112eeb77c5fe2887252e98a75e82 (patch)
tree43d4c4f45c07d04b6d2f79536ceff41f853f51a7 /arch
parentc9b62657738d2f46ff632860187614178491bdea (diff)
UBUNTU: SAUCE: Add 'used' to the video_cards structure attributes
BugLink: http://bugs.launchpad.net/bugs/1049650 Without the 'used' attribute, some versions of the compiler will optimize the video_cards section to 0. Leave some build debug in debian/rules.d/2-binary-arch.mk to print the video_cards section details. Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/boot/video.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/boot/video.h b/arch/x86/boot/video.h
index ff339c5db31..0bb25491262 100644
--- a/arch/x86/boot/video.h
+++ b/arch/x86/boot/video.h
@@ -80,7 +80,7 @@ struct card_info {
u16 xmode_n; /* Size of unprobed mode range */
};
-#define __videocard struct card_info __attribute__((section(".videocards")))
+#define __videocard struct card_info __attribute__((used,section(".videocards")))
extern struct card_info video_cards[], video_cards_end[];
int mode_defined(u16 mode); /* video.c */