These types are needed to declare builtin functions without passing by the add_pre_buffer()-tokenization-parsing phases. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- symbol.c | 4 ++++ symbol.h | 1 + 2 files changed, 5 insertions(+) diff --git a/symbol.c b/symbol.c index 26906ec41..4aa7f08a9 100644 --- a/symbol.c +++ b/symbol.c @@ -677,6 +677,7 @@ struct symbol bool_ctype, void_ctype, type_ctype, string_ctype, ptr_ctype, lazy_ptr_ctype, incomplete_ctype, label_ctype, bad_ctype, null_ctype; +struct symbol const_ptr_ctype, const_string_ctype; struct symbol zero_int; @@ -743,6 +744,9 @@ static const struct ctype_declare { { &null_ctype, SYM_PTR, 0, &bits_in_pointer, &pointer_alignment, &void_ctype }, { &label_ctype, SYM_PTR, 0, &bits_in_pointer, &pointer_alignment, &void_ctype }, { &lazy_ptr_ctype, SYM_PTR, 0, &bits_in_pointer, &pointer_alignment, &void_ctype }, + + { &const_ptr_ctype, SYM_NODE, MOD_CONST, &bits_in_pointer, &pointer_alignment, &ptr_ctype }, + { &const_string_ctype,SYM_NODE, MOD_CONST, &bits_in_pointer, &pointer_alignment, &string_ctype }, { NULL, } }; #undef MOD_LLL diff --git a/symbol.h b/symbol.h index 327449611..c1ef447ac 100644 --- a/symbol.h +++ b/symbol.h @@ -269,6 +269,7 @@ extern struct symbol bool_ctype, void_ctype, type_ctype, string_ctype, ptr_ctype, lazy_ptr_ctype, incomplete_ctype, label_ctype, bad_ctype, null_ctype; +extern struct symbol const_ptr_ctype, const_string_ctype; /* Special internal symbols */ extern struct symbol zero_int; -- 2.14.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