Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135678
b: refs/heads/master
c: 4075134
h: refs/heads/master
v: v3
  • Loading branch information
Gregory Haskins committed Dec 29, 2008
1 parent e6464da commit b5cffcd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 967fc04671feea4dbf780c9e55a0bc8fcf68a14e
refs/heads/master: 4075134e40804821f90866d7de56802e4dcecb1e
9 changes: 6 additions & 3 deletions trunk/include/linux/plist.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,18 @@ struct plist_node {
# define PLIST_HEAD_LOCK_INIT(_lock)
#endif

#define _PLIST_HEAD_INIT(head) \
.prio_list = LIST_HEAD_INIT((head).prio_list), \
.node_list = LIST_HEAD_INIT((head).node_list)

/**
* PLIST_HEAD_INIT - static struct plist_head initializer
* @head: struct plist_head variable name
* @_lock: lock to initialize for this list
*/
#define PLIST_HEAD_INIT(head, _lock) \
{ \
.prio_list = LIST_HEAD_INIT((head).prio_list), \
.node_list = LIST_HEAD_INIT((head).node_list), \
_PLIST_HEAD_INIT(head), \
PLIST_HEAD_LOCK_INIT(&(_lock)) \
}

Expand All @@ -116,7 +119,7 @@ struct plist_node {
#define PLIST_NODE_INIT(node, __prio) \
{ \
.prio = (__prio), \
.plist = PLIST_HEAD_INIT((node).plist, NULL), \
.plist = { _PLIST_HEAD_INIT((node).plist) }, \
}

/**
Expand Down

0 comments on commit b5cffcd

Please sign in to comment.