hooks: rename CALL_HOOK_AFTER to CALL_HOOK_AFTER_DB and change it a bit
commit0d60a567521244c5757bfb288715f16a996dce49
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 6 Apr 2016 09:39:09 +0000 (6 12:39 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Wed, 6 Apr 2016 09:39:09 +0000 (6 12:39 +0300)
tree5d29d1fc32106a41b54bb4760acaa473d4d75a6e
parent83ca683054bb3ff312e63afb410b3b88e5628196
hooks: rename CALL_HOOK_AFTER to CALL_HOOK_AFTER_DB and change it a bit

This is a bugfix.  Back in the day, when there was a function call used in
a condition we used to query the database twice and so
smatch_untracked_param.c worked but now we only do it once.  The problem is
that we call FUNCTION_CALL_HOOK_AFTER before we query the DB but that needs
to be after.

There is the only place that uses CALL_HOOK_AFTER and it really wants to
know what the states are after we'd queried the database.  So I have
renamed it and changed where it is called.

Fixes: 0384c14a42b8 ('function_hooks: don't process condition functions twice')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch.h
smatch_flow.c
smatch_function_hooks.c
smatch_hooks.c
smatch_untracked_param.c