Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753015AbZKBBOd (ORCPT ); Sun, 1 Nov 2009 20:14:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752794AbZKBBOd (ORCPT ); Sun, 1 Nov 2009 20:14:33 -0500 Received: from casper.infradead.org ([85.118.1.10]:60936 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752780AbZKBBOc (ORCPT ); Sun, 1 Nov 2009 20:14:32 -0500 Date: Sun, 1 Nov 2009 17:15:42 -0800 From: Arjan van de Ven To: Li Zefan Cc: Ingo Molnar , Steven Rostedt , Frederic Weisbecker , Linus Torvalds , Andrew Morton , LKML Subject: Re: [PATCH 1/2] compiler: Introduce __always_unused Message-ID: <20091101171542.56a44a49@infradead.org> In-Reply-To: <4AEE2CEC.8040206@cn.fujitsu.com> References: <4AEE2CEC.8040206@cn.fujitsu.com> Organization: Intel X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.6; i586-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 848 Lines: 26 On Mon, 02 Nov 2009 08:50:52 +0800 Li Zefan 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/