From: Michael Buesch <mb@bu3sch.de>
To: Josh Triplett <josh@kernel.org>
Cc: linux-sparse@vger.kernel.org
Subject: [PATCH] sparse: Add more ignored attributes
Date: Wed, 25 Nov 2009 14:29:17 +0100 [thread overview]
Message-ID: <200911251429.18554.mb@bu3sch.de> (raw)
This adds more ignored gcc-style attributes.
externally_visible is a standard gcc attribute.
signal is an AVR8 attribute used to define interrupt service routines.
Ignore these attributes, as they are currently not useful for sparse checking.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
---
Index: sparse/parse.c
===================================================================
--- sparse.orig/parse.c 2009-11-24 23:44:37.000000000 +0100
+++ sparse/parse.c 2009-11-25 14:21:39.000000000 +0100
@@ -541,6 +541,10 @@ static struct init_keyword {
{ "__warning__", NS_KEYWORD, .op = &ignore_attr_op },
{ "bounded", NS_KEYWORD, .op = &ignore_attr_op },
{ "__bounded__", NS_KEYWORD, .op = &ignore_attr_op },
+ { "externally_visible", NS_KEYWORD, .op = &ignore_attr_op },
+ { "__externally_visible__", NS_KEYWORD, .op = &ignore_attr_op },
+ { "signal", NS_KEYWORD, .op = &ignore_attr_op },
+ { "__signal__", NS_KEYWORD, .op = &ignore_attr_op },
};
void init_parser(int stream)
--
Greetings, Michael.
next reply other threads:[~2009-11-25 13:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-25 13:29 Michael Buesch [this message]
2009-11-26 0:54 ` [PATCH] sparse: Add more ignored attributes Christopher Li
-- strict thread matches above, loose matches on Subject: below --
2009-11-26 11:03 Michael Buesch
2009-11-28 7:09 ` Christopher Li
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200911251429.18554.mb@bu3sch.de \
--to=mb@bu3sch.de \
--cc=josh@kernel.org \
--cc=linux-sparse@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).