Skip to contentSkip to conversation

perf: Add back list_head data types

tip:perf/urgent tip-bot for Ingo Molnar 1 participant 1 message Aug 12, 2010 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  88d89da64951377962334b684634cfc1468aa93f
Gitweb:     http://git.kernel.org/tip/88d89da64951377962334b684634cfc1468aa93f
Author:     Ingo Molnar <[email protected]>
AuthorDate: Thu, 12 Aug 2010 21:50:00 +0200
Committer:  Ingo Molnar <[email protected]>
CommitDate: Thu, 12 Aug 2010 21:50:00 +0200

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 <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Steven Rostedt <[email protected]>
LKML-Reference: <new-submission>

---
 tools/perf/util/include/linux/types.h |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
tools/perf/util/include/linux/types.h +12 -0
index 196862a..12de3b8 100644
@@ -6,4 +6,16 @@
 #define DECLARE_BITMAP(name,bits) \
 	unsigned long name[BITS_TO_LONGS(bits)]
 
+struct list_head {
+	struct list_head *next, *prev;
+};
+
+struct hlist_head {
+	struct hlist_node *first;
+};
+
+struct hlist_node {
+	struct hlist_node *next, **pprev;
+};
+
 #endif