From patchwork Thu Jun 18 17:41:29 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Torvalds X-Patchwork-Id: 31192 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n5IHfbhP018573 for ; Thu, 18 Jun 2009 17:41:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751918AbZFRRld (ORCPT ); Thu, 18 Jun 2009 13:41:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753173AbZFRRld (ORCPT ); Thu, 18 Jun 2009 13:41:33 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:35410 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751918AbZFRRld (ORCPT ); Thu, 18 Jun 2009 13:41:33 -0400 Received: from imap1.linux-foundation.org (imap1.linux-foundation.org [140.211.169.55]) by smtp1.linux-foundation.org (8.14.2/8.13.5/Debian-3ubuntu1.1) with ESMTP id n5IHfUes012839 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 18 Jun 2009 10:41:31 -0700 Received: from localhost (localhost [127.0.0.1]) by imap1.linux-foundation.org (8.13.5.20060308/8.13.5/Debian-3ubuntu1.1) with ESMTP id n5IHfTPA014209; Thu, 18 Jun 2009 10:41:30 -0700 Date: Thu, 18 Jun 2009 10:41:29 -0700 (PDT) From: Linus Torvalds X-X-Sender: torvalds@localhost.localdomain To: Christopher Li , linux-sparse@vger.kernel.org Subject: Avoid "attribute 'warning': unknown attribute" warning In-Reply-To: Message-ID: References: User-Agent: Alpine 2.01 (LFD 1184 2008-12-16) MIME-Version: 1.0 X-Spam-Status: No, hits=-3.472 required=5 tests=AWL,BAYES_00 X-Spam-Checker-Version: SpamAssassin 3.2.4-osdl_revision__1.47__ X-MIMEDefang-Filter: lf$Revision: 1.188 $ X-Scanned-By: MIMEDefang 2.63 on 140.211.169.13 Sender: linux-sparse-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sparse@vger.kernel.org This avoids getting annoying warnings from and from , which use the "__attribute__((__warning__ (msg)))" gcc attribute. [ The attribute causes gcc to print out the supplied warning message if the function is used. We should some day support it, but this patch just makes us ignore it. ] Signed-off-by: Linus Torvalds --- parse.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/parse.c b/parse.c index df696e5..e5ad867 100644 --- a/parse.c +++ b/parse.c @@ -528,6 +528,8 @@ static struct init_keyword { { "__cold__", NS_KEYWORD, .op = &ignore_attr_op }, { "hot", NS_KEYWORD, .op = &ignore_attr_op }, { "__hot__", NS_KEYWORD, .op = &ignore_attr_op }, + { "warning", NS_KEYWORD, .op = &ignore_attr_op }, + { "__warning__", NS_KEYWORD, .op = &ignore_attr_op }, }; void init_parser(int stream)