container_of: get_offset_from_container_of() should work for non-params
commit45ec747256cd301dc13012baec5ad0c2908d9e1f
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 19 Oct 2017 08:56:19 +0000 (19 11:56 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 19 Oct 2017 08:56:19 +0000 (19 11:56 +0300)
tree7febeacf4d9edac0ddae5b09a623c6b12b75c852
parentac9ab48630d960f74d26bffdf37e75ecb0a2a76e
container_of: get_offset_from_container_of() should work for non-params

Right now if you do something like:

struct two *two = container_of(p->XXX, struct two, one);

It won't give you the offset because it says "p->XXX" isn't a symbol or
a parameter.

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