diff options
| author | Antonino Daplas <adaplas@hotpop.com> | 2005-02-15 16:41:34 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-02-15 16:41:34 -0800 |
| commit | 9694f9761a60be72698361cc543e0310b05aec31 (patch) | |
| tree | d57e7a14ea8b2caea49a30c656c3ee417ea1a864 /include/linux | |
| parent | 5ff974d98118d600159788c9637d013df8361fa7 (diff) | |
[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: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/fb.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/fb.h b/include/linux/fb.h index 2ce671eadbd7..974894b623cd 100644 --- a/include/linux/fb.h +++ b/include/linux/fb.h @@ -862,7 +862,6 @@ extern void fb_destroy_modedb(struct fb_videomode *modedb); /* 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, @@ -907,6 +906,8 @@ struct fb_videomode { u32 flag; }; +extern const struct fb_videomode vesa_modes[]; + struct fb_modelist { struct list_head list; struct fb_videomode mode; |
