helper: export get_param_key_from_sm()
commit2fba9be8fa5281711a435069cd7a95ce528b2f6c
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 1 Sep 2020 10:05:16 +0000 (1 13:05 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Tue, 1 Sep 2020 10:05:16 +0000 (1 13:05 +0300)
tree4e64dcb6e9e56de94145a455d9b55eac496b546f
parent20dda9d37dd41db0766518fbfffa2eee36b8756e
helper: export get_param_key_from_sm()

This code comes from check_locking.c but renamed to show that it's general
and not specific to locking.

One of the benefits of the locking code is that it handles the -1 return
parameter as well.  If it can't tie the sm to a parameter then it returns
-2 so probably most checks will have to check for that and ignore them.

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