Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S268329AbUJJQd6 (ORCPT ); Sun, 10 Oct 2004 12:33:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S268339AbUJJQd6 (ORCPT ); Sun, 10 Oct 2004 12:33:58 -0400 Received: from perninha.conectiva.com.br ([200.140.247.100]:29606 "EHLO perninha.conectiva.com.br") by vger.kernel.org with ESMTP id S268329AbUJJQdz (ORCPT ); Sun, 10 Oct 2004 12:33:55 -0400 Message-ID: <41696514.90303@conectiva.com.br> Date: Sun, 10 Oct 2004 13:36:36 -0300 From: Arnaldo Carvalho de Melo Organization: Conectiva S.A. User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Oleg Nesterov Cc: Andi Kleen , linux-kernel@vger.kernel.org Subject: Re: [RFC] __initdata strings References: <2NNXM-1fZ-5@gated-at.bofh.it> <41695F85.A0000E3D@tv-sign.ru> In-Reply-To: <41695F85.A0000E3D@tv-sign.ru> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.16.3 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 735 Lines: 26 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/