* [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
* Re: [PATCH] sparse: Add 'leaf' to ignored attributes.
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
0 siblings, 1 reply; 6+ messages in thread
From: Pekka Enberg @ 2012-01-18 7:20 UTC (permalink / raw)
To: Ethan Jackson; +Cc: linux-sparse, Christopher Li
On Wed, Jan 18, 2012 at 12:47 AM, Ethan Jackson <ethan@nicira.com> wrote:
> 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>
Acked-by: Pekka Enberg <penberg@kernel.org>
--
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] 6+ messages in thread
* Re: [PATCH] sparse: Add 'leaf' to ignored attributes.
2012-01-18 7:20 ` Pekka Enberg
@ 2012-01-18 8:33 ` Christopher Li
2012-01-18 16:58 ` Ethan Jackson
0 siblings, 1 reply; 6+ messages in thread
From: Christopher Li @ 2012-01-18 8:33 UTC (permalink / raw)
To: Pekka Enberg; +Cc: Ethan Jackson, linux-sparse
On Tue, Jan 17, 2012 at 11:20 PM, Pekka Enberg <penberg@kernel.org> wrote:
> On Wed, Jan 18, 2012 at 12:47 AM, Ethan Jackson <ethan@nicira.com> wrote:
>> 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>
>
> Acked-by: Pekka Enberg <penberg@kernel.org>
Looks good to me too. Will apply.
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] 6+ messages in thread
* Re: [PATCH] sparse: Add 'leaf' to ignored attributes.
2012-01-18 8:33 ` Christopher Li
@ 2012-01-18 16:58 ` Ethan Jackson
2012-06-07 23:01 ` Ethan Jackson
0 siblings, 1 reply; 6+ messages in thread
From: Ethan Jackson @ 2012-01-18 16:58 UTC (permalink / raw)
To: Christopher Li; +Cc: Pekka Enberg, linux-sparse
Thanks!
Ethan
On Wed, Jan 18, 2012 at 00:33, Christopher Li <sparse@chrisli.org> wrote:
> On Tue, Jan 17, 2012 at 11:20 PM, Pekka Enberg <penberg@kernel.org> wrote:
>> On Wed, Jan 18, 2012 at 12:47 AM, Ethan Jackson <ethan@nicira.com> wrote:
>>> 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>
>>
>> Acked-by: Pekka Enberg <penberg@kernel.org>
>
> Looks good to me too. Will apply.
>
> 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] 6+ messages in thread
* Re: [PATCH] sparse: Add 'leaf' to ignored attributes.
2012-01-18 16:58 ` Ethan Jackson
@ 2012-06-07 23:01 ` Ethan Jackson
[not found] ` <CANeU7QkVuB1k1C9wyqxEoVKZT-c3PdTHmmVY-YnUW1h8o9BjjA@mail.gmail.com>
0 siblings, 1 reply; 6+ messages in thread
From: Ethan Jackson @ 2012-06-07 23:01 UTC (permalink / raw)
To: Christopher Li; +Cc: Pekka Enberg, linux-sparse
Hello, sorry to have left this hanging so long. Out of curiosity, is
this still planned to be applied to the upstream tree?
Ethan
On Wed, Jan 18, 2012 at 8:58 AM, Ethan Jackson <ethan@nicira.com> wrote:
> Thanks!
>
> Ethan
>
> On Wed, Jan 18, 2012 at 00:33, Christopher Li <sparse@chrisli.org> wrote:
>> On Tue, Jan 17, 2012 at 11:20 PM, Pekka Enberg <penberg@kernel.org> wrote:
>>> On Wed, Jan 18, 2012 at 12:47 AM, Ethan Jackson <ethan@nicira.com> wrote:
>>>> 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>
>>>
>>> Acked-by: Pekka Enberg <penberg@kernel.org>
>>
>> Looks good to me too. Will apply.
>>
>> 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] 6+ messages in thread
* Re: [PATCH] sparse: Add 'leaf' to ignored attributes.
[not found] ` <CANeU7QkVuB1k1C9wyqxEoVKZT-c3PdTHmmVY-YnUW1h8o9BjjA@mail.gmail.com>
@ 2012-06-09 4:50 ` Ethan Jackson
0 siblings, 0 replies; 6+ messages in thread
From: Ethan Jackson @ 2012-06-09 4:50 UTC (permalink / raw)
To: Christopher Li; +Cc: Pekka Enberg, linux-sparse@vger.kernel.org
Ah great, I'll clone from there for now on. Thanks!
Ethan
On Fri, Jun 8, 2012 at 9:46 PM, Christopher Li <sparse@chrisli.org> wrote:
>
>
> On Thursday, June 7, 2012, Ethan Jackson wrote:
>>
>> Hello, sorry to have left this hanging so long. Out of curiosity, is
>> this still planned to be applied to the upstream tree?
>
>
> Yes.
>
> Already apply to chrisl repository a while back.
>
> http://git.kernel.org/?p=devel/sparse/chrisl/sparse.git;a=commit;h=b0b4886be5f668959b8c75c9c811059e07b1073a
>
> 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] 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).