param_used: record when a container_of() a param is used
commit2e95eacc96d64daaddcb0b3ee8aed0ee14dd52e7
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 10 Oct 2017 10:28:16 +0000 (10 13:28 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Tue, 10 Oct 2017 10:29:43 +0000 (10 13:29 +0300)
tree649fc9347052109525795228999fa78a1b9833f3
parent8ed63ef7d709b81eb6ac6ac5fde9abecbf5f6b13
param_used: record when a container_of() a param is used

The kernel uses the container_of() macro a lot.  This is the first
step towards supporting that.  It inserts something with a key like this
into call implies "$(-346)->foo" to say that we take the container_of
the parameter, and use the ->foo member.  The "346" is the offset in bytes.

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