Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf: Add back list_head data types

This commit:

de5d9bf: Move list types from <linux/list.h> to <linux/types.h>.

Moved the list head data types out of list.h, breaking the build.
Add them to the perf types.h as well.

Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

+12
+12
tools/perf/util/include/linux/types.h
··· 6 6 #define DECLARE_BITMAP(name,bits) \ 7 7 unsigned long name[BITS_TO_LONGS(bits)] 8 8 9 + struct list_head { 10 + struct list_head *next, *prev; 11 + }; 12 + 13 + struct hlist_head { 14 + struct hlist_node *first; 15 + }; 16 + 17 + struct hlist_node { 18 + struct hlist_node *next, **pprev; 19 + }; 20 + 9 21 #endif