* [PATCH] sparse: Add more ignored attributes
@ 2009-11-25 13:29 Michael Buesch
2009-11-26 0:54 ` Christopher Li
0 siblings, 1 reply; 4+ messages in thread
From: Michael Buesch @ 2009-11-25 13:29 UTC (permalink / raw)
To: Josh Triplett; +Cc: linux-sparse
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] sparse: Add more ignored attributes
2009-11-25 13:29 [PATCH] sparse: Add more ignored attributes Michael Buesch
@ 2009-11-26 0:54 ` Christopher Li
0 siblings, 0 replies; 4+ messages in thread
From: Christopher Li @ 2009-11-26 0:54 UTC (permalink / raw)
To: Michael Buesch; +Cc: Josh Triplett, linux-sparse
On Wed, Nov 25, 2009 at 5:29 AM, Michael Buesch <mb@bu3sch.de> wrote:
> + { "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 },
Can you update your patch base on the chrisl branch?
git://git.kernel.org/pub/scm/devel/sparse/chrisl/sparse.git
In the new code you just need to add the attribute name to ignored_attributes
array.
Thanks
Chris
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] sparse: Add more ignored attributes
2009-11-26 11:03 Michael Buesch
@ 2009-11-28 7:09 ` Christopher Li
0 siblings, 0 replies; 4+ messages in thread
From: Christopher Li @ 2009-11-28 7:09 UTC (permalink / raw)
To: Michael Buesch; +Cc: Josh Triplett, linux-sparse
On Thu, Nov 26, 2009 at 3:03 AM, Michael Buesch <mb@bu3sch.de> wrote:
> This adds more ignored gcc-style attributes.
>
Applied with slightly modified title.
Thanks!
Chris
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] sparse: Add more ignored attributes
@ 2009-11-26 11:03 Michael Buesch
2009-11-28 7:09 ` Christopher Li
0 siblings, 1 reply; 4+ messages in thread
From: Michael Buesch @ 2009-11-26 11:03 UTC (permalink / raw)
To: Christopher Li; +Cc: Josh Triplett, linux-sparse
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-dev/parse.c
===================================================================
--- sparse-dev.orig/parse.c 2009-11-26 12:02:13.000000000 +0100
+++ sparse-dev/parse.c 2009-11-26 12:02:18.000000000 +0100
@@ -505,6 +505,8 @@ const char *ignored_attributes[] = {
"__dllexport__",
"dllimport",
"__dllimport__",
+ "externally_visible",
+ "__externally_visible__",
"fastcall",
"__fastcall__",
"format",
@@ -537,6 +539,8 @@ const char *ignored_attributes[] = {
"__section__",
"sentinel",
"__sentinel__",
+ "signal",
+ "__signal__",
"stdcall",
"__stdcall__",
"syscall_linkage",
--
Greetings, Michael.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-11-28 7:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-25 13:29 [PATCH] sparse: Add more ignored attributes Michael Buesch
2009-11-26 0:54 ` Christopher Li
2009-11-26 11:03 Michael Buesch
2009-11-28 7:09 ` Christopher Li
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.