mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Martin Mares <mj@suse.cz>
To: pazke@orbita1.ru
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH][RFC][REPOST] __init_msg(x) and friends macro
Date: Mon, 28 May 2001 17:31:52 +0200	[thread overview]
Message-ID: <20010528173152.A808@albireo.ucw.cz> (raw)
In-Reply-To: <20010528155841.A24736@orbita1.ru>
In-Reply-To: <20010528155841.A24736@orbita1.ru>; from pazke@orbita1.ru on Mon, May 28, 2001 at 03:58:41PM +0400

Hi!

> 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 :))

I think it's better to teach GCC understanding another function attribute
defining the default section of all read-only data defined in the function.

				Have a nice fortnight
-- 
Martin `MJ' Mares <mj@ucw.cz> <mj@suse.cz> http://atrey.karlin.mff.cuni.cz/~mj/
Even nostalgia isn't what it used to be.

      reply	other threads:[~2001-05-28 15:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-28 11:58 pazke
2001-05-28 15:31 ` Martin Mares [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010528173152.A808@albireo.ucw.cz \
    --to=mj@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pazke@orbita1.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®