summaryrefslogtreecommitdiff
path: root/packages/linux/files/linux-2.4.18-list_move.patch
diff options
context:
space:
mode:
authorFrans Meulenbroeks <fransmeulenbroeks@yahoo.com>2005-11-05 21:50:06 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-11-05 21:50:06 +0000
commit594cd366a214b9ea8f7ed52eb7f4635a393f48a5 (patch)
treed0d22e466d06421e9972cd9027569b54924b18d3 /packages/linux/files/linux-2.4.18-list_move.patch
parent7adabd7dffa510d614b4a681c912909b354c1ed6 (diff)
parent3eeaa7051df89f3241f6420d22aa919001376e39 (diff)
merge of 21d66a92293faf76a506c7d17e3cd16e143bb401
and 70f8ac179abbb777f1bec20edf02530820b33e92
Diffstat (limited to 'packages/linux/files/linux-2.4.18-list_move.patch')
-rw-r--r--packages/linux/files/linux-2.4.18-list_move.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/packages/linux/files/linux-2.4.18-list_move.patch b/packages/linux/files/linux-2.4.18-list_move.patch
new file mode 100644
index 0000000000..faec56330b
--- /dev/null
+++ b/packages/linux/files/linux-2.4.18-list_move.patch
@@ -0,0 +1,32 @@
+--- linux/include/linux/list.h~ 2001-12-21 17:42:03.000000000 +0000
++++ linux/include/linux/list.h 2004-06-14 23:41:33.000000000 +0100
+@@ -105,6 +105,29 @@
+ }
+
+ /**
++ * list_move - delete from one list and add as another's head
++ * @list: the entry to move
++ * @head: the head that will precede our entry
++ */
++static inline void list_move(struct list_head *list, struct list_head *head)
++{
++ __list_del(list->prev, list->next);
++ list_add(list, head);
++}
++
++/**
++ * list_move_tail - delete from one list and add as another's tail
++ * @list: the entry to move
++ * @head: the head that will follow our entry
++ */
++static inline void list_move_tail(struct list_head *list,
++ struct list_head *head)
++{
++ __list_del(list->prev, list->next);
++ list_add_tail(list, head);
++}
++
++/**
+ * list_empty - tests whether a list is empty
+ * @head: the list to test.
+ */