Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: Replace old style lock initializer

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>

authored by

Thomas Gleixner and committed by
David S. Miller
d3bcfefa b622d97a

+1 -1
+1 -1
net/core/drop_monitor.c
··· 41 41 * netlink alerts 42 42 */ 43 43 static int trace_state = TRACE_OFF; 44 - static spinlock_t trace_state_lock = SPIN_LOCK_UNLOCKED; 44 + static DEFINE_SPINLOCK(trace_state_lock); 45 45 46 46 struct per_cpu_dm_data { 47 47 struct work_struct dm_alert_work;