x86, boot: Use __attribute__((used)) to ensure videocard structs are emitted
[linux-2.6-microblaze.git] / arch / x86 / boot / video.h
index ff339c5..0bb2549 100644 (file)
@@ -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 */