X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fcore%2Flink_watch.c;h=646937cc2d84db521aeff0b4eedb7a1bc89670d5;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=4b36114744c57f983c8af674ee45610f6e830ac1;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/net/core/link_watch.c b/net/core/link_watch.c index 4b3611474..646937cc2 100644 --- a/net/core/link_watch.c +++ b/net/core/link_watch.c @@ -11,6 +11,7 @@ * */ +#include #include #include #include @@ -90,10 +91,11 @@ static void rfc2863_policy(struct net_device *dev) /* Must be called with the rtnl semaphore held */ void linkwatch_run_queue(void) { - struct list_head head, *n, *next; + LIST_HEAD(head); + struct list_head *n, *next; spin_lock_irq(&lweventlist_lock); - list_replace_init(&lweventlist, &head); + list_splice_init(&lweventlist, &head); spin_unlock_irq(&lweventlist_lock); list_for_each_safe(n, next, &head) {