net: Replace old style lock initializer
authorThomas Gleixner <tglx@linutronix.de>
Sat, 7 Nov 2009 06:17:25 +0000 (22:17 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Nov 2009 08:46:34 +0000 (00:46 -0800)
SPIN_LOCK_UNLOCKED is deprecated. Use DEFINE_SPINLOCK instead.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/drop_monitor.c

index 0a113f26bc9f9e64e3de19a26751cbd6c746e242..b8e9d3a86887424a7db46bded809898443095d31 100644 (file)
@@ -41,7 +41,7 @@ static void send_dm_alert(struct work_struct *unused);
  * netlink alerts
  */
 static int trace_state = TRACE_OFF;
-static spinlock_t trace_state_lock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(trace_state_lock);
 
 struct per_cpu_dm_data {
        struct work_struct dm_alert_work;