linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sparse: Add 'leaf' to ignored attributes.
@ 2012-01-17 22:47 Ethan Jackson
  2012-01-18  7:20 ` Pekka Enberg
  0 siblings, 1 reply; 6+ messages in thread
From: Ethan Jackson @ 2012-01-17 22:47 UTC (permalink / raw)
  To: linux-sparse; +Cc: Ethan Jackson

This patch adds the 'leaf' GCC attribute to the list of ignored
attributes.  Glibc uses this attribute causing the following
warnings in userspace projects:

  /usr/include/stdlib.h:514:26: error: attribute '__leaf__': unknown attribute

Signed-off-by: Ethan Jackson <ethan@nicira.com>
---
 ident-list.h |    2 ++
 parse.c      |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/ident-list.h b/ident-list.h
index b12d172..35ac6bd 100644
--- a/ident-list.h
+++ b/ident-list.h
@@ -88,6 +88,8 @@ IDENT(dllimport); IDENT(__dllimport__);
 IDENT(dllexport); IDENT(__dllexport__);
 IDENT(restrict); IDENT(__restrict);
 IDENT(artificial); IDENT(__artificial__);
+IDENT(leaf); IDENT(__leaf__);
+
 
 /* Preprocessor idents.  Direct use of __IDENT avoids mentioning the keyword
  * itself by name, preventing these tokens from expanding when compiling
diff --git a/parse.c b/parse.c
index bd42180..f8ade3e 100644
--- a/parse.c
+++ b/parse.c
@@ -519,6 +519,8 @@ const char *ignored_attributes[] = {
 	"__format_arg__",
 	"hot",
 	"__hot__",
+        "leaf",
+        "__leaf__",
 	"l1_text",
 	"__l1_text__",
 	"l1_data",
-- 
1.7.8.3


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-06-09  4:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-17 22:47 [PATCH] sparse: Add 'leaf' to ignored attributes Ethan Jackson
2012-01-18  7:20 ` Pekka Enberg
2012-01-18  8:33   ` Christopher Li
2012-01-18 16:58     ` Ethan Jackson
2012-06-07 23:01       ` Ethan Jackson
     [not found]         ` <CANeU7QkVuB1k1C9wyqxEoVKZT-c3PdTHmmVY-YnUW1h8o9BjjA@mail.gmail.com>
2012-06-09  4:50           ` Ethan Jackson

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).