From aae0d67d4b8150e1707255a1f32249aba3f34f61 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Fri, 30 Jan 2015 18:32:38 +0300 Subject: [PATCH] type_val: ignore all the "for_each" macros These are void pointer assignments but actually both the left and right side are always the same type of pointer so we can ignore them. Signed-off-by: Dan Carpenter --- smatch_type_val.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/smatch_type_val.c b/smatch_type_val.c index afb84275..74482caf 100644 --- a/smatch_type_val.c +++ b/smatch_type_val.c @@ -188,6 +188,8 @@ static int is_ignored_macro(void) return 1; if (strcmp(name, "list_entry") == 0) return 1; + if (strstr(name, "for_each")) + return 1; return 0; } -- 2.11.4.GIT