Amazing how many crept up over time, should have set the
execute bit of .git/hooks/pre-commit already, duh.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
From: Pavel Emelianov <xemul@sw.ru>
There are many places where the construction like
foo = list_entry(head->next, struct foo_struct, list);
are used.
The code might look more descriptive and neat if using the macro
list_first_entry(head, type, member) \
list_entry((head)->next, type, member)
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
a <-> b <-> c <-> d <-> e <-> f <-> g
list_del_range(b, d) turns the list into:
a <-> e <-> f <-> g
This one is not in the kernel list.h, have to look if there are uses and push
it to linux if there are any.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>