Re: __initdata and struct dmi_system_id?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Németh Márton
Date: Sunday, September 14, 2008 - 12:30 am

Helge Deller wrote:

I wonder why there is a difference when declaring a string as char[] instead
of char*. So I created a bug report against gcc:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37506

I guess the memory saving depend on several things, such as:
 - is there anyithing else in the section
 - the minimum memory length which can be allocated/freed

The other interesting question on this topic is that what about the
error message strings which are used as parameter of the printk() calls.
Those strings are combined together for a function which is marked with
__init and the functions which are normal functions. The strings which
are only used by the functions marked with __init could be freed, but
the strings of the normal functions shouldn't be.

Regards,

	Márton Németh

PS.: please also CC me
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
__initdata and struct dmi_system_id?, Németh Márton, (Thu Sep 4, 10:45 pm)
Re: __initdata and struct dmi_system_id?, Németh Márton, (Sun Sep 14, 12:30 am)
Re: __initdata and struct dmi_system_id?, Henrique de Moraes H ..., (Sun Sep 14, 4:33 am)
Re: __initdata and struct dmi_system_id?, Németh Márton, (Sun Sep 14, 9:26 am)
Re: __initdata and struct dmi_system_id?, Henrique de Moraes H ..., (Sun Sep 14, 11:38 am)