mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 11:16:11 +00:00
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>
This commit is contained in:
parent
b622d97a63
commit
d3bcfefaca
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue