Since the introduction of the macro FOR_EACH_PTR_TAG() all the users of the macros FOR_EACH_PTR() & FOR_EACH_PTR_REVERSE() are only used for the usual case where no tag is used on the pointers. It is thus no more needed to strip the tag from these pointers and internally we can, for these two macros, call the simpler PTR_ENTRY_NOTAG() instead of PTR_ENTRY_UNTAG(). Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- ptrlist.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ptrlist.h b/ptrlist.h index a1badbb78..7ab5ffe46 100644 --- a/ptrlist.h +++ b/ptrlist.h @@ -222,7 +222,7 @@ static inline void *last_ptr_list(struct ptr_list *list) ((__typeof__(&(ptr))) (__list->list + __nr)) #define FOR_EACH_PTR(head, ptr) \ - DO_FOR_EACH(head, ptr, __head##ptr, __list##ptr, __nr##ptr, PTR_ENTRY_UNTAG) + DO_FOR_EACH(head, ptr, __head##ptr, __list##ptr, __nr##ptr, PTR_ENTRY_NOTAG) #define FOR_EACH_PTR_TAG(head, ptr) \ DO_FOR_EACH(head, ptr, __head##ptr, __list##ptr, __nr##ptr, PTR_ENTRY_UNTAG) @@ -236,7 +236,7 @@ static inline void *last_ptr_list(struct ptr_list *list) #define END_FOR_EACH_PTR_NOTAG(ptr) END_FOR_EACH_PTR(ptr) #define FOR_EACH_PTR_REVERSE(head, ptr) \ - DO_FOR_EACH_REVERSE(head, ptr, __head##ptr, __list##ptr, __nr##ptr, PTR_ENTRY_UNTAG) + DO_FOR_EACH_REVERSE(head, ptr, __head##ptr, __list##ptr, __nr##ptr, PTR_ENTRY_NOTAG) #define FOR_EACH_PTR_REVERSE_TAG(head, ptr) \ DO_FOR_EACH_REVERSE(head, ptr, __head##ptr, __list##ptr, __nr##ptr, PTR_ENTRY_UNTAG) -- 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