lkml.org 
[lkml]   [2006]   [May]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectConfused about section type conflicts and __initdata
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-05-30 20:39    [W:0.183 / U:2.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site