Commit Graph

7 Commits

Author SHA1 Message Date
Arnaldo Carvalho de Melo e9b83dba79 list: Adopt list_next_entry() from the Linux kernel
We'll use it to traverse the list of opaque btf_encoder entries in
pahole.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2021-08-20 16:40:27 -03:00
Domenico Andreoli e714d2eaa1 Adopt SPDX-License-Identifier
Signed-off-by: Domenico Andreoli <domenico.andreoli@linux.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2019-01-18 15:41:48 -03:00
Arnaldo Carvalho de Melo 4d44276d85 coding style: remove trailing whitespaces, etc
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>
2009-03-14 13:50:36 -03:00
Pavel Emelianov 041f60ec0d list: Introduce a handy list_first_entry macro
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>
2008-06-28 09:59:54 -03:00
Arnaldo Carvalho de Melo b4d6de9b6f [LICENSE]: Add COPYING file and add missing license info on some files
Thanks to Otavio Salvador for bringing up this issue.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2007-12-17 14:15:42 -02:00
Arnaldo Carvalho de Melo 461099d7a8 [LIST]: Introduce list_del_range
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>
2007-11-12 15:44:35 -02:00
Arnaldo Carvalho de Melo 038d806873 Repository creation.
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
2006-10-24 20:42:39 -03:00