[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-sparse
Subject: Re: dissect: teach do_expression() to handle EXPR_OFFSETOF
From: Lance Richardson <lrichard () redhat ! com>
Date: 2016-09-26 17:52:15
Message-ID: 20160926175213.GA31182 () thinkcentre
[Download RAW message or body]
+++ Oleg Nesterov [08/02/16 14:26 +0100]:
>Starting from a194f3e0 "implement __builtin_offsetof()" sparse handles
>offsetof() internally but dissect.c wasn't updated.
>
>Test case:
>
> struct S { int m; };
>
> void func(void)
> {
> __builtin_offsetof(struct S, m);
> }
>
>before this patch:
>
> 3:6 g def func void ( ... )
> T.c:5:38: warning: bad expr->type: 30
>
>after:
>
> 3:6 g def func void ( ... )
> 1:8 s def S
> 5:38 s --- S.m int
>
>While at it, update my email.
>
>Signed-off-by: Oleg Nesterov <oleg@redhat.com>
LGTM, builds and test case works as expected.
Acked-by: Lance Richardson <lrichard@redhat.com>
--
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic