Messages in this thread | | | Date | Sun, 10 Oct 2004 13:36:36 -0300 | From | Arnaldo Carvalho de Melo <> | Subject | Re: [RFC] __initdata strings |
| |
Oleg Nesterov wrote: > Andi Kleen wrote: > >>There is a more generic way to do this with gcc extensions. Something like
Or with a pre-processor, using a sparse based tool such as this one I've written a long time ago:
http://www.kernel.org/pub/linux/kernel/people/acme/sparse/initstr.c
That uses what Andi described, but does this automatically if initstr is made part of the building process.
>> >>#define __i(x) ({ static char __str[] __initdata = x; __str; })
Regards,
- Arnaldo - 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/
| |