locking: turn off locking check for non-SMP configs
commit20dda9d37dd41db0766518fbfffa2eee36b8756e
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 1 Sep 2020 09:34:20 +0000 (1 12:34 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Tue, 1 Sep 2020 09:34:20 +0000 (1 12:34 +0300)
treeed6190b75fe4413cdfe59bc67afbec0791361c45
parentfb733fe3b9038613454ec7d57a15d87cba3eccb4
locking: turn off locking check for non-SMP configs

On uniprocessor configs then there is no spin_lock functions but there are
spin_unlock functions so you end up with tons of double unlock warnings.
That's perhaps an over simplification of the situation and we could check
for mutexes or whatever...  But really uniprocessor configs are not common
and this change will silence a lot of false positives without losing any
real bugs.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
check_locking.c