Since add_ptr_list_notag() is now simply a define to add_ptr_list() it's not anymore really needed and can be removed. Remove add_ptr_list_notag()'s definition and replace its only call by a call to add_ptr_list(). Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- lib.c | 2 +- ptrlist.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib.c b/lib.c index 0be4548a6..b44c4a2eb 100644 --- a/lib.c +++ b/lib.c @@ -1339,7 +1339,7 @@ struct symbol_list *sparse_initialize(int argc, char **argv, struct string_list args = handle_switch(arg+1, args); continue; } - add_ptr_list_notag(filelist, arg); + add_ptr_list(filelist, arg); } handle_switch_W_finalize(); handle_switch_v_finalize(); diff --git a/ptrlist.h b/ptrlist.h index f3902a736..9ab3047e2 100644 --- a/ptrlist.h +++ b/ptrlist.h @@ -57,8 +57,6 @@ extern int linearize_ptr_list(struct ptr_list *, void **, int); MKTYPE(*(list), (CHECK_TYPE(*(list),(entry)),__add_ptr_list_tag((struct ptr_list **)(list), (entry), (tag)))) #define add_ptr_list(list,entry) \ MKTYPE(*(list), (CHECK_TYPE(*(list),(entry)),__add_ptr_list((struct ptr_list **)(list), (entry)))) -#define add_ptr_list_notag(list,entry) \ - add_ptr_list(list, entry) #define free_ptr_list(list) \ do { VRFY_PTR_LIST(*(list)); __free_ptr_list((struct ptr_list **)(list)); } while (0) -- 2.17.1 -- 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