mtag/container_of: the first struct member can be a function
commit90e73e4386775e80e390215bb6c32c0f7f25d096
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 26 Jul 2018 16:12:21 +0000 (26 19:12 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 26 Jul 2018 16:12:21 +0000 (26 19:12 +0300)
treeb3edfee0af338072e88145b40f9ffa290200a21a
parentc221e3ad1f1d5620c79869eee715d181358b7c1a
mtag/container_of: the first struct member can be a function

In the original code, it failed if the first struct member was a function.
(Or in other words, if the container_of was -0).

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_container_of.c
validation/sm_mtag7.c [new file with mode: 0644]