Skip to contentSkip to conversation

Eliminate compile warnings in atyfb_base.c

PATCH New insecure 1 participant 1 message Aug 25, 2003 Framebuffer layer

lore
Share & tools
lore

insecure

author
#0 lore raw

PATCH 1/1 Eliminate compile warnings in atyfb_base.c

Warnings were:
CC drivers/video/aty/atyfb_base.o
drivers/video/aty/atyfb_base.c:393: warning: ram_dram' defined but not used drivers/video/aty/atyfb_base.c:404: warning: ram_resv' defined but not used --
vda

drivers/video/aty/atyfb_base.c renamed from drivers/video/aty/atyfb_base.c.orig +3 -1
@@ -390,7 +390,10 @@
 #endif				/* CONFIG_FB_ATY_CT */
 };
 
+#if defined(CONFIG_FB_ATY_GX) || defined(CONFIG_FB_ATY_CT)
 static char ram_dram[] __initdata = "DRAM";
+static char ram_resv[] __initdata = "RESV";
+#endif
 #ifdef CONFIG_FB_ATY_GX
 static char ram_vram[] __initdata = "VRAM";
 #endif /* CONFIG_FB_ATY_GX */
@@ -401,7 +404,6 @@
 static char ram_wram[] __initdata = "WRAM";
 static char ram_off[] __initdata = "OFF";
 #endif /* CONFIG_FB_ATY_CT */
-static char ram_resv[] __initdata = "RESV";
 
 static u32 pseudo_palette[17];