From 0a9f4a9feeea9d919bf0e91c5d1678f1f1d5ffab Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Wed, 20 Sep 2017 17:45:56 +0300 Subject: [PATCH] db: fix function signatures for pointers We want the signature of the function type not the pointer. Signed-off-by: Dan Carpenter --- smatch_db.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/smatch_db.c b/smatch_db.c index bee87368..7f0a5a25 100644 --- a/smatch_db.c +++ b/smatch_db.c @@ -562,6 +562,8 @@ static void match_call_marker(struct expression *expr) struct symbol *type; type = get_type(expr->fn); + if (type && type->type == SYM_PTR) + type = get_real_base_type(type); /* * we just want to record something in the database so that if we have -- 2.11.4.GIT