* Confused about section type conflicts and __initdata
@ 2006-05-30 18:37 Dmitry Torokhov
0 siblings, 0 replies; only message in thread
From: Dmitry Torokhov @ 2006-05-30 18:37 UTC (permalink / raw)
To: linux-kernel
Hi,
I am trying to declare dmi_ids in drivers/input/misc/wistron_btns.c as
__initdata but gcc keeps bitching about
"drivers/input/misc/wistron_btns.c:326: error: dmi_ids causes a
section type conflict" unless I also declare that variable as "const".
I checked GCC's assembler output and using "static const struct
dmi_system_id __initdata dmi_ids[] = {..." does indeed get it into
".init.data" section but comments in include/linux/init.h specifically
mention that the data can't be const... This is with GCC 3.4.4.
Anyone have any ideas, pretty please?
--
Dmitry
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-05-30 18:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-30 18:37 Confused about section type conflicts and __initdata Dmitry Torokhov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®