Commit 492361a6 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] list.h cleanup

- s/__inline__/inline/

- Remove lots of extraneous andi-was-here trailing whitespace
parent 0109dc6d
......@@ -86,9 +86,8 @@ static inline void list_add_tail(struct list_head *new, struct list_head *head)
* This is only for internal list manipulation where we know
* the prev/next entries already!
*/
static __inline__ void __list_add_rcu(struct list_head * new,
struct list_head * prev,
struct list_head * next)
static inline void __list_add_rcu(struct list_head * new,
struct list_head * prev, struct list_head * next)
{
new->next = next;
new->prev = prev;
......@@ -113,7 +112,7 @@ static __inline__ void __list_add_rcu(struct list_head * new,
* the _rcu list-traversal primitives, such as
* list_for_each_entry_rcu().
*/
static __inline__ void list_add_rcu(struct list_head *new, struct list_head *head)
static inline void list_add_rcu(struct list_head *new, struct list_head *head)
{
__list_add_rcu(new, head, head->next);
}
......@@ -134,7 +133,8 @@ static __inline__ void list_add_rcu(struct list_head *new, struct list_head *hea
* the _rcu list-traversal primitives, such as
* list_for_each_entry_rcu().
*/
static __inline__ void list_add_tail_rcu(struct list_head *new, struct list_head *head)
static inline void list_add_tail_rcu(struct list_head *new,
struct list_head *head)
{
__list_add_rcu(new, head->prev, head);
}
......@@ -494,17 +494,17 @@ struct hlist_node {
#define INIT_HLIST_HEAD(ptr) ((ptr)->first = NULL)
#define INIT_HLIST_NODE(ptr) ((ptr)->next = NULL, (ptr)->pprev = NULL)
static __inline__ int hlist_unhashed(const struct hlist_node *h)
static inline int hlist_unhashed(const struct hlist_node *h)
{
return !h->pprev;
}
static __inline__ int hlist_empty(const struct hlist_head *h)
static inline int hlist_empty(const struct hlist_head *h)
{
return !h->first;
}
static __inline__ void __hlist_del(struct hlist_node *n)
static inline void __hlist_del(struct hlist_node *n)
{
struct hlist_node *next = n->next;
struct hlist_node **pprev = n->pprev;
......@@ -513,7 +513,7 @@ static __inline__ void __hlist_del(struct hlist_node *n)
next->pprev = pprev;
}
static __inline__ void hlist_del(struct hlist_node *n)
static inline void hlist_del(struct hlist_node *n)
{
__hlist_del(n);
n->next = LIST_POISON1;
......@@ -545,7 +545,7 @@ static inline void hlist_del_rcu(struct hlist_node *n)
n->pprev = LIST_POISON2;
}
static __inline__ void hlist_del_init(struct hlist_node *n)
static inline void hlist_del_init(struct hlist_node *n)
{
if (n->pprev) {
__hlist_del(n);
......@@ -555,7 +555,7 @@ static __inline__ void hlist_del_init(struct hlist_node *n)
#define hlist_del_rcu_init hlist_del_init
static __inline__ void hlist_add_head(struct hlist_node *n, struct hlist_head *h)
static inline void hlist_add_head(struct hlist_node *n, struct hlist_head *h)
{
struct hlist_node *first = h->first;
n->next = first;
......@@ -585,7 +585,8 @@ static __inline__ void hlist_add_head(struct hlist_node *n, struct hlist_head *h
*
* OK, so why don't we have an hlist_for_each_entry_rcu()???
*/
static __inline__ void hlist_add_head_rcu(struct hlist_node *n, struct hlist_head *h)
static inline void hlist_add_head_rcu(struct hlist_node *n,
struct hlist_head *h)
{
struct hlist_node *first = h->first;
n->next = first;
......@@ -597,7 +598,8 @@ static __inline__ void hlist_add_head_rcu(struct hlist_node *n, struct hlist_hea
}
/* next must be != NULL */
static __inline__ void hlist_add_before(struct hlist_node *n, struct hlist_node *next)
static inline void hlist_add_before(struct hlist_node *n,
struct hlist_node *next)
{
n->pprev = next->pprev;
n->next = next;
......@@ -605,7 +607,7 @@ static __inline__ void hlist_add_before(struct hlist_node *n, struct hlist_node
*(n->pprev) = n;
}
static __inline__ void hlist_add_after(struct hlist_node *n,
static inline void hlist_add_after(struct hlist_node *n,
struct hlist_node *next)
{
next->next = n->next;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment