| Submitter | Michael Stefaniuc |
|---|---|
| Date | 2009-09-30 20:19:30 |
| Message ID | <20090930201930.GB32461@redhat.com> |
| Download | mbox | patch |
| Permalink | /patch/50752/ |
| State | New |
| Headers | show |
Comments
On Wed, Sep 30, 2009 at 1:19 PM, Michael Stefaniuc <mstefaniuc@gmail.com> wrote: > Wine has annotated the Win32 alloc functions with the alloc_size > attribute. This cuts down the noise a lot when running sparse on the > Wine source code. Both patches were applied and pushed. 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
Patch
diff --git a/parse.c b/parse.c index fa3b45e..c3f9b6a 100644 --- a/parse.c +++ b/parse.c @@ -475,6 +475,8 @@ static struct init_keyword { const char *ignored_attributes[] = { "alias", "__alias__", + "alloc_size", + "__alloc_size__", "always_inline", "__always_inline__", "bounded",
Wine has annotated the Win32 alloc functions with the alloc_size attribute. This cuts down the noise a lot when running sparse on the Wine source code. Signed-off-by: Michael Stefaniuc <mstefaniuc@gmail.com> --- Resend for the chrisl tree. parse.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)