1 int _spin_trylock(int name
);
2 void _spin_lock(int name
);
3 void _spin_unlock(int name
);
9 if (!({frob(); frob(); _spin_trylock(mylock
);}))
15 if (((_spin_trylock(mylock
)?1:0)?1:0))
23 * check-name: Smatch locking #3
24 * check-command: smatch --project=kernel sm_locking3.c
27 sm_locking3.c:18 func() error: double unlock 'spin_lock:mylock'
28 sm_locking3.c:20 func() warn: inconsistent returns 'spin_lock:mylock'.