mtag: make get_mtag_offset() give both an mtag and an offset
commit348baf1738b873131fbe2f78b383b4e4aea9245e
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 26 Jul 2018 10:51:05 +0000 (26 13:51 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 26 Jul 2018 10:57:33 +0000 (26 13:57 +0300)
tree757e78262f58456f471296d6c985e7b5833f423e
parent6d14254f48896759df0afefc37aa0fbbcebffa57
mtag: make get_mtag_offset() give both an mtag and an offset

From the name, you'd sort of expect it to return an mtag and an offset.
Also there is a kind of complicated thing with pointers where it hard to
talk about the pointer vs what the pointer is holding.  What's the value
of a pointer?  Is it the address or the thing stored in the address.

This function is used when you want to get the thing stored in the address.
But really it gives you the address...  I don't know if this explanation
is helping...

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch.h
smatch_mtag.c
smatch_mtag_data.c