container_of/mtag: use container_of information for when we pass a non-struct
commit1e70b407e2513ff0d1ae96fb8250d30ed3756d07
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 26 Jul 2018 06:47:38 +0000 (26 09:47 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 26 Jul 2018 06:47:38 +0000 (26 09:47 +0300)
tree0b264a96869b6bbc042eff1f690a07f6b8a262e7
parentdadddbf95b8601badecfd6dfa5e34461d56046c9
container_of/mtag: use container_of information for when we pass a non-struct

The code was sort of assuming that when we do:

p->foo(&p->bar);

That "bar" is a struct.  But it could be an int or something instead.

This patch is basically a rough draft, I'm going to re-write it.  All the
mtag work is rough draft quality.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_container_of.c