From 79cba108a94c926bd705073d683701c1c8bd7d10 Mon Sep 17 00:00:00 2001 From: "Robert P. J. Day" Date: Fri, 25 Jul 2008 01:45:32 -0700 Subject: [PATCH] --- yaml --- r: 105793 b: refs/heads/master c: e0ce0da9fefcc723dc006c35a7f91a32750abd40 h: refs/heads/master i: 105791: 899a257487d0fba553f139045c1859cfcb23921d v: v3 --- [refs] | 2 +- trunk/include/linux/list.h | 4 ---- trunk/lib/list_debug.c | 14 -------------- 3 files changed, 1 insertion(+), 19 deletions(-) diff --git a/[refs] b/[refs] index ed381016e025..6552f0a86f8c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: fd193829744bc77392395cf8f47889235c97f0a3 +refs/heads/master: e0ce0da9fefcc723dc006c35a7f91a32750abd40 diff --git a/trunk/include/linux/list.h b/trunk/include/linux/list.h index 139ec41d9c2e..453916bc0412 100644 --- a/trunk/include/linux/list.h +++ b/trunk/include/linux/list.h @@ -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 /** diff --git a/trunk/lib/list_debug.c b/trunk/lib/list_debug.c index 4350ba9655bd..45c03fd608dd 100644 --- a/trunk/lib/list_debug.c +++ b/trunk/lib/list_debug.c @@ -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.