[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20091101171542.56a44a49@infradead.org>
Date: Sun, 1 Nov 2009 17:15:42 -0800
From: Arjan van de Ven <arjan@...radead.org>
To: Li Zefan <lizf@...fujitsu.com>
Cc: Ingo Molnar <mingo@...e.hu>, Steven Rostedt <rostedt@...dmis.org>,
Frederic Weisbecker <fweisbec@...il.com>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Andrew Morton <akpm@...ux-foundation.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 1/2] compiler: Introduce __always_unused
On Mon, 02 Nov 2009 08:50:52 +0800
Li Zefan <lizf@...fujitsu.com> wrote:
Hi,
> I wrote some code which is used as compile-time checker, and the
> code should be elided after compile.
> +#define __always_unused
> __attribute__((unused))
I have a suggestion.
In addition to marking it attribute unused, would it be useful to also
put a section attribute as part of this, to a section that we can then
drop from the binary by way of the linker script ?
--
Arjan van de Ven Intel Open Source Technology Centre
For development, discussion and tips for power savings,
visit http://www.lesswatts.org
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists