lkml.org 
[lkml]   [2008]   [Jun]   [4]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] add a printk_init variant storing format strings in __initdata
FromDavid Woodhouse <>
DateWed, 04 Jun 2008 09:56:32 +0100
On Tue, 2008-06-03 at 10:27 +0100, Andy Whitcroft wrote:
> +#define printk_init(fmt, args...) \
> +do { \
> +        static char __printk_init_fmt[] __initdata = fmt; \
> +        __printk_init(__printk_init_fmt, ##args); \
> +} while (0)

Hm, do these strings still get merged? Perhaps we want them in
a .initdata.str section on their own?

Bonus points for letting the linker 'merge' such strings into the
real .rodata.str section if they exist there too.

-- 
dwmw2



\
 
 \ /
  Last update: 2008-06-04 10:59    [from the cache]
©2003-2008