linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Change fb.h to compile with GCC-4.0
@ 2005-02-15 19:24 Art Haas
  0 siblings, 0 replies; only message in thread
From: Art Haas @ 2005-02-15 19:24 UTC (permalink / raw)
  To: Antonio Daplas, linux-fbdev-devel; +Cc: linux-kernel

Hi.

The current GCC cvs code does not like the include/linux/fb.h file:

In file included from drivers/video/aty/atyfb_base.c:63:
include/linux/fb.h:865: error: array type has incomplete element type

This error is due to recent changes in GCC. A thread discussing this
change can be found by following the link below:

http://gcc.gnu.org/ml/gcc/2005-02/msg00053.html

The patch moves the array declaration after the definition of the 
fb_modelist structure, and with this small change GCC is happy once
again. Maybe this can sneak in for 2.6.11?

Art Haas
===== include/linux/fb.h 1.94 vs edited =====
--- 1.94/include/linux/fb.h	2005-01-20 23:01:17 -06:00
+++ edited/include/linux/fb.h	2005-02-15 11:38:28 -06:00
@@ -862,7 +862,6 @@
 
 /* drivers/video/modedb.c */
 #define VESA_MODEDB_SIZE 34
-extern const struct fb_videomode vesa_modes[];
 extern void fb_var_to_videomode(struct fb_videomode *mode,
 				struct fb_var_screeninfo *var);
 extern void fb_videomode_to_var(struct fb_var_screeninfo *var,
@@ -906,6 +905,8 @@
 	u32 vmode;
 	u32 flag;
 };
+
+extern const struct fb_videomode vesa_modes[];
 
 struct fb_modelist {
 	struct list_head list;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-02-15 19:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-15 19:24 [PATCH] Change fb.h to compile with GCC-4.0 Art Haas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).