Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- symbol.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/symbol.h b/symbol.h index 36f8345b5..ee17ba643 100644 --- a/symbol.h +++ b/symbol.h @@ -347,6 +347,13 @@ static inline int is_ptr_type(struct symbol *type) return type->type == SYM_PTR || type->type == SYM_ARRAY || type->type == SYM_FN; } +static inline int is_func_type(struct symbol *type) +{ + if (type->type == SYM_NODE) + type = type->ctype.base_type; + return type->type == SYM_FN; +} + static inline int is_float_type(struct symbol *type) { if (type->type == SYM_NODE) -- 2.12.0 -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html