From: Art Haas <ahaas@airmail.net>
To: Antonio Daplas <adaplas@pol.net>,
linux-fbdev-devel@lists.sourceforge.net
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] Change fb.h to compile with GCC-4.0
Date: Tue, 15 Feb 2005 13:24:03 -0600 [thread overview]
Message-ID: <1108494519.16101.11.camel@localhost.localdomain> (raw)
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;
reply other threads:[~2005-02-15 19:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1108494519.16101.11.camel@localhost.localdomain \
--to=ahaas@airmail.net \
--cc=adaplas@pol.net \
--cc=linux-fbdev-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).