From: Thomas Gleixner Date: Sat, 7 Nov 2009 06:17:25 +0000 (-0800) Subject: net: Replace old style lock initializer X-Git-Tag: Ubuntu-goldfish-3.4.0-4.27~9222^2~477 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=d3bcfefaca27c1bfc8f740f5fff5b25d52ed1211;p=mirror_ubuntu-zesty-kernel.git net: Replace old style lock initializer SPIN_LOCK_UNLOCKED is deprecated. Use DEFINE_SPINLOCK instead. Signed-off-by: Thomas Gleixner Signed-off-by: David S. Miller --- diff --git a/net/core/drop_monitor.c b/net/core/drop_monitor.c index 0a113f26bc9f..b8e9d3a86887 100644 --- a/net/core/drop_monitor.c +++ b/net/core/drop_monitor.c @@ -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;