Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105793
b: refs/heads/master
c: e0ce0da
h: refs/heads/master
i:
  105791: 899a257
v: v3
  • Loading branch information
Robert P. J. Day authored and Linus Torvalds committed Jul 25, 2008
1 parent a9aeabe commit 79cba10
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 19 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: fd193829744bc77392395cf8f47889235c97f0a3
refs/heads/master: e0ce0da9fefcc723dc006c35a7f91a32750abd40
4 changes: 0 additions & 4 deletions trunk/include/linux/list.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,10 @@ extern void __list_add(struct list_head *new,
* Insert a new entry after the specified head.
* This is good for implementing stacks.
*/
#ifndef CONFIG_DEBUG_LIST
static inline void list_add(struct list_head *new, struct list_head *head)
{
__list_add(new, head, head->next);
}
#else
extern void list_add(struct list_head *new, struct list_head *head);
#endif


/**
Expand Down
14 changes: 0 additions & 14 deletions trunk/lib/list_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,6 @@ void __list_add(struct list_head *new,
}
EXPORT_SYMBOL(__list_add);

/**
* list_add - add a new entry
* @new: new entry to be added
* @head: list head to add it after
*
* Insert a new entry after the specified head.
* This is good for implementing stacks.
*/
void list_add(struct list_head *new, struct list_head *head)
{
__list_add(new, head, head->next);
}
EXPORT_SYMBOL(list_add);

/**
* list_del - deletes entry from list.
* @entry: the element to delete from the list.
Expand Down

0 comments on commit 79cba10

Please sign in to comment.