[PATCH][RFC][REPOST] __init_msg(x) and friends macro

From: pazke@orbita1.ru
Date: Mon May 28 2001 - 06:58:41 EST


Hi all,

soryy for such ugly subject line, but I already sent this patch
to LKML and didn't get any reply.

Patch adds __init_msg (and friends) macro that places its argument
(string constant) into corresponding .data.init section and returns
pointer to it. The goal of this patch is to allow constructions like this:

        static void __init foo(void)
        {
                printk(__init_msg(KERN_INFO "Some random long message "
                                  "going to .data.init and then to bit bucket\n"));
        }

I hope this patch can save some memory and will be usefull :))

Best regards.

-- 
Andrey Panin            | Embedded systems software engineer
pazke@orbita1.ru        | PGP key: http://www.orbita1.ru/~pazke/AndreyPanin.asc



- 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/



This archive was generated by hypermail 2b29 : Thu May 31 2001 - 21:00:36 EST