• L
    Expand CONFIG_DEBUG_LIST to several other list operations · 3c18d4de
    Linus Torvalds 提交于
    When list debugging is enabled, we aim to readably show list corruption
    errors, and the basic list_add/list_del operations end up having extra
    debugging code in them to do some basic validation of the list entries.
    
    However, "list_del_init()" and "list_move[_tail]()" ended up avoiding
    the debug code due to how they were written. This fixes that.
    
    So the _next_ time we have list_move() problems with stale list entries,
    we'll hopefully have an easier time finding them..
    Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
    3c18d4de
list.h 21.2 KB