Re: [PATCH 1/2] compiler: Introduce __always_unused

From: Arjan van de Ven
Date: Sun Nov 01 2009 - 20:14:53 EST

On Mon, 02 Nov 2009 08:50:52 +0800
Li Zefan <lizf@xxxxxxxxxxxxxx> wrote:


> 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,
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at