git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert to Fedora kernel-2.6.17-1.2187_FC5 patched with vs2.0.2.1; there are too many...
[linux-2.6.git]
/
net
/
core
/
link_watch.c
diff --git
a/net/core/link_watch.c
b/net/core/link_watch.c
index
4b36114
..
646937c
100644
(file)
--- a/
net/core/link_watch.c
+++ b/
net/core/link_watch.c
@@
-11,6
+11,7
@@
*
*/
*
*/
+#include <linux/config.h>
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/if.h>
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/if.h>
@@
-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)
{
/* 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);
spin_lock_irq(&lweventlist_lock);
- list_
repla
ce_init(&lweventlist, &head);
+ list_
spli
ce_init(&lweventlist, &head);
spin_unlock_irq(&lweventlist_lock);
list_for_each_safe(n, next, &head) {
spin_unlock_irq(&lweventlist_lock);
list_for_each_safe(n, next, &head) {