On Thu, Jul 6, 2017 at 6:18 PM, Christopher Li <sparse@xxxxxxxxxxx> wrote: > > Basiclly, the parent DO_FOR_EACH() has __nr caching the > current ptr position. When the inner loop function delete > one entry before the current position. The parent current > position needs to be adjust, because the entry[] has been > move forward. Gaah. I think the original idea for this was to call pack_ptr_list() only at the end of all the list traversal that could delete things. Linus -- 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