public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH][2.5] introduce list_move macros
@ 2002-06-09 11:09 Lightweight patch manager
  2002-06-09 11:23 ` Mark Zealey
                   ` (3 more replies)
  0 siblings, 4 replies; 36+ messages in thread
From: Lightweight patch manager @ 2002-06-09 11:09 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Linus Torvalds

This is the only _global_ patch about the list_move macros, which means 
introducing them. Here they are:

--- linus-2.5/include/linux/list.h	Sun Jun  9 04:17:14 2002
+++ thunder-2.5/include/linux/list.h	Sun Jun  9 05:07:02 2002
@@ -174,6 +174,24 @@
 	for (pos = (head)->next, n = pos->next; pos != (head); \
 		pos = n, n = pos->next)
 
+/**
+ * list_move           - move a list entry from a right after b
+ * @list       the entry to move
+ * @head       the entry to move after
+ */
+#define list_move(list,head) \
+        list_del(list); \
+        list_add(list,head)
+
+/**
+ * list_move_tail      - move a list entry from a right before b
+ * @list       the entry to move
+ * @head       the entry that will come after ours
+ */
+#define list_move(list,head) \
+        list_del(list); \
+        list_add_tail(list,head)
+
 #endif /* __KERNEL__ || _LVM_H_INCLUDE */
 
 #endif

-- 
Lightweight patch manager using pine. If you have any objections, tell me.


^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2002-06-13 14:20 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-09 11:09 [PATCH][2.5] introduce list_move macros Lightweight patch manager
2002-06-09 11:23 ` Mark Zealey
2002-06-10 14:17   ` Thunder from the hill
2002-06-09 11:48 ` OGAWA Hirofumi
2002-06-09 12:02   ` Thomas 'Dent' Mirlacher
2002-06-09 12:01 ` Russell King
2002-06-09 12:42 ` [PATCH][2.5] introduce list_move macros (revisited) Lightweight patch manager
2002-06-10 15:14   ` Dan Aloni
2002-06-10 15:28   ` [PATCH] 2.5.21 - list.h cleanup Dan Aloni
2002-06-10 15:45     ` Thunder from the hill
2002-06-10 16:37     ` Andreas Dilger
2002-06-10 16:50       ` Thomas 'Dent' Mirlacher
2002-06-10 17:02         ` Linus Torvalds
2002-06-10 17:07           ` Thomas 'Dent' Mirlacher
2002-06-10 17:21             ` Linus Torvalds
2002-06-11  8:00               ` Rusty Russell
2002-06-11  8:33                 ` Linus Torvalds
2002-06-11  8:48                   ` Martin Dalecki
2002-06-11  9:04                   ` Martin Dalecki
2002-06-11  9:14                   ` Rusty Russell
2002-06-12 19:45                     ` Ingo Molnar
2002-06-13  5:51                       ` Rusty Russell
2002-06-13 14:18                         ` Ingo Molnar
2002-06-11 14:52                   ` george anzinger
2002-06-11 16:03                     ` Daniel Phillips
2002-06-12  1:10                     ` Rusty Russell
2002-06-12  1:29                       ` Linus Torvalds
2002-06-12  6:02                         ` Rusty Russell
2002-06-12  7:11                         ` Martin Dalecki
2002-06-12  7:27                           ` Andrew Morton
2002-06-11 17:54                   ` Gerrit Huizenga
2002-06-12  3:49                     ` Rusty Russell
2002-06-12 17:30                       ` Gerrit Huizenga
2002-06-10 17:26           ` Manik Raina
2002-06-10 17:51           ` Dan Aloni
2002-06-10 21:28     ` Thunder from the hill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox