const and __initdata (was: Re: [Linux-fbdev-devel] [PATCH 4/7] fbdev: move logo externs to header file)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Geert Uytterhoeven
Date: Tuesday, March 13, 2007 - 7:00 am

On Wed, 31 Jan 2007, Geert Uytterhoeven wrote:

By modifying scripts/pnmtologo.c to add `const' to the declaration of the
linux_logo structs, I could keep the const.

However, this introduced a new conflict w.r.t. to `const' and `__initdata':
  - gcc 3.4.6 20060404 (Red Hat 3.4.6-3) for ia32 needs xxx_data[] and
    xxx_clut[] to be const too, else it complains about a section type conflict
  - ppu-gcc 4.1.0 20060304 (Red Hat 4.1.0-3) for ppc64 needs xxx_data[] and
    xxx_clut[] to be non-const, else it complains about a section type conflict

Anyone with a suggestion how to fix this? Keep everything non-const for now?
Add tests for specific compiler versions (I assume this is a gcc 3.x vs. 4.x
issue?)?

Thanks in advance!

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- Sony Network and Software Technology Center Europe (NSCE)
Geert.Uytterhoeven@sonycom.com ------- The Corporate Village, Da Vincilaan 7-D1
Voice +32-2-7008453 Fax +32-2-7008622 ---------------- B-1935 Zaventem, Belgium
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/7] RFC: Cell SPE logos, Geert Uytterhoeven, (Wed Jan 31, 5:27 am)
Re: [PATCH 0/7] RFC: Cell SPE logos, Geert Uytterhoeven, (Wed Jan 31, 5:40 am)
[PATCH 1/7] fbdev: Avoid vertical overflow when making spa ..., Geert Uytterhoeven, (Wed Jan 31, 5:43 am)
[PATCH 2/7] fbdev: fb_do_show_logo() updates, Geert Uytterhoeven, (Wed Jan 31, 5:43 am)
[PATCH 3/7] fbdev: extract fb_show_logo_line(), Geert Uytterhoeven, (Wed Jan 31, 5:44 am)
[PATCH 4/7] fbdev: move logo externs to header file, Geert Uytterhoeven, (Wed Jan 31, 5:44 am)
[PATCH 5/7] fbdev: Add fb_append_extra_logo(), Geert Uytterhoeven, (Wed Jan 31, 5:44 am)
[PATCH 6/7] fbdev: SPE helper penguin logo, Geert Uytterhoeven, (Wed Jan 31, 5:44 am)
[PATCH 7/7] Cell: Draw SPE helper penguin logos, Geert Uytterhoeven, (Wed Jan 31, 5:44 am)
Re: [Cbe-oss-dev] [PATCH 0/7] RFC: Cell SPE logos, Geoff Levand, (Thu Feb 1, 9:51 am)
Re: [PATCH 0/7] RFC: Cell SPE logos, Pavel Machek, (Sun Feb 4, 6:32 am)
Re: [Linux-fbdev-devel] [PATCH 0/7] RFC: Cell SPE logos, Geert Uytterhoeven, (Sun Feb 4, 10:44 am)
Re: [Cbe-oss-dev] [PATCH 0/7] RFC: Cell SPE logos, Benjamin Herrenschmidt, (Sun Feb 4, 7:14 pm)
Re: [PATCH 0/7] RFC: Cell SPE logos, James Simmons, (Tue Feb 6, 3:06 pm)
Re: [Cbe-oss-dev] [PATCH 0/7] RFC: Cell SPE logos, Pavel Machek, (Wed Feb 7, 5:44 am)
Re: [PATCH 0/7] RFC: Cell SPE logos, Geert Uytterhoeven, (Mon Feb 12, 6:54 am)
Re: [PATCH 0/7] RFC: Cell SPE logos, James Simmons, (Tue Feb 13, 1:51 pm)
Re: [PATCH 0/7] RFC: Cell SPE logos, Geert Uytterhoeven, (Wed Feb 14, 10:33 am)
const and __initdata (was: Re: [Linux-fbdev-devel] [PATCH ..., Geert Uytterhoeven, (Tue Mar 13, 7:00 am)