From 9f9c48dbef9f3760143e8034cfa50cea33c91881 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Fri, 9 Jan 2015 14:13:39 +0300 Subject: [PATCH] function_ptrs: handle SYN_NODE This is a Sparse internal thing leaking into real life. I don't totally understand it so I worry that I'm doing something wrong. :( Oh well, hack around it. Signed-off-by: Dan Carpenter --- smatch_function_ptrs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/smatch_function_ptrs.c b/smatch_function_ptrs.c index 69a5e846..d6ba3ad7 100644 --- a/smatch_function_ptrs.c +++ b/smatch_function_ptrs.c @@ -248,6 +248,8 @@ static void match_function_assign(struct expression *expr) sym = get_type(right); if (!sym) return; + if (sym->type == SYM_NODE) + sym = get_real_base_type(sym); if (sym->type != SYM_FN && sym->type != SYM_PTR && sym->type != SYM_ARRAY) return; if (sym->type == SYM_PTR) { -- 2.11.4.GIT