]> err.no Git - linux-2.6/blobdiff - net/ipv6/route.c
Pull acpi_device_handle_cleanup into release branch
[linux-2.6] / net / ipv6 / route.c
index 8a777932786d7d4c0975fd6941489039abad3d06..87c39c978cd0e12dc44ecddd521d5a220e40ff9f 100644 (file)
@@ -25,7 +25,6 @@
  */
 
 #include <linux/capability.h>
-#include <linux/config.h>
 #include <linux/errno.h>
 #include <linux/types.h>
 #include <linux/times.h>
@@ -349,7 +348,7 @@ static struct rt6_info *rt6_select(struct rt6_info **head, int oif,
            (strict & RT6_SELECT_F_REACHABLE) &&
            last && last != rt0) {
                /* no entries matched; do round-robin */
-               static spinlock_t lock = SPIN_LOCK_UNLOCKED;
+               static DEFINE_SPINLOCK(lock);
                spin_lock(&lock);
                *head = rt0->u.next;
                rt0->u.next = last->u.next;