1 void _spin_lock(int name
);
2 void _spin_unlock(int name
);
3 int _spin_trylock(int name
);
13 if (!_spin_trylock(mylock
)) {
18 _spin_unlock(mylock2
);
24 if (!_spin_trylock(mylock3
))
29 * check-name: Smatch locking #2
30 * check-command: smatch --project=kernel -DCONFIG_SMP=y sm_locking2.c
33 sm_locking2.c:21 func() error: double unlocked 'mylock' (orig line 17)
34 sm_locking2.c:26 func() warn: inconsistent returns 'mylock3'.