public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Arnaldo Carvalho de Melo <acme@conectiva.com.br>
To: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Andi Kleen <ak@muc.de>, linux-kernel@vger.kernel.org
Subject: Re: [RFC] __initdata strings
Date: Sun, 10 Oct 2004 13:36:36 -0300	[thread overview]
Message-ID: <41696514.90303@conectiva.com.br> (raw)
In-Reply-To: <41695F85.A0000E3D@tv-sign.ru>



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

  reply	other threads:[~2004-10-10 16:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <2NNXM-1fZ-5@gated-at.bofh.it>
2004-10-10 15:45 ` [RFC] __initdata strings Andi Kleen
2004-10-10 16:12   ` Oleg Nesterov
2004-10-10 16:36     ` Arnaldo Carvalho de Melo [this message]
2004-10-10 15:28 Oleg Nesterov
2004-10-10 16:31 ` Matt Mackall
2004-10-10 16:40   ` Arnaldo Carvalho de Melo

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=41696514.90303@conectiva.com.br \
    --to=acme@conectiva.com.br \
    --cc=ak@muc.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oleg@tv-sign.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