Commit 9694f976 authored by Antonino Daplas's avatar Antonino Daplas Committed by Linus Torvalds

[PATCH] fbdev: Fix gcc 4.0 compile failure

From: Art Haas

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.
Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 5ff974d9
...@@ -862,7 +862,6 @@ extern void fb_destroy_modedb(struct fb_videomode *modedb); ...@@ -862,7 +862,6 @@ extern void fb_destroy_modedb(struct fb_videomode *modedb);
/* drivers/video/modedb.c */ /* drivers/video/modedb.c */
#define VESA_MODEDB_SIZE 34 #define VESA_MODEDB_SIZE 34
extern const struct fb_videomode vesa_modes[];
extern void fb_var_to_videomode(struct fb_videomode *mode, extern void fb_var_to_videomode(struct fb_videomode *mode,
struct fb_var_screeninfo *var); struct fb_var_screeninfo *var);
extern void fb_videomode_to_var(struct fb_var_screeninfo *var, extern void fb_videomode_to_var(struct fb_var_screeninfo *var,
...@@ -907,6 +906,8 @@ struct fb_videomode { ...@@ -907,6 +906,8 @@ struct fb_videomode {
u32 flag; u32 flag;
}; };
extern const struct fb_videomode vesa_modes[];
struct fb_modelist { struct fb_modelist {
struct list_head list; struct list_head list;
struct fb_videomode mode; struct fb_videomode mode;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment