balanced: delete this check
commitcbaabe0a71f079030baa406b3e1fe9e0ca7e785a
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 20 Apr 2017 11:29:39 +0000 (20 14:29 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 20 Apr 2017 11:29:39 +0000 (20 14:29 +0300)
tree0db9966ba33890fd2392c9553879d5949e81d4cf
parentb11c9d562a2aa89e7feb97f95eb9e6da7bbf56d4
balanced: delete this check

The idea here was that it would be an easy way to list functions that need
to be balanced such as lock/unlock, get/put etc.  But in real life and
especially in the kernel that model is too simplistic to be worth while.

We only ever checked local_bh_disable/enable.  It worked badly and
generated a false positive if we enabled first and then disabled.  These
kinds of bugs are already caught by check_locking.c so it's duplicative.

Reported-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
check_balanced.c [deleted file]
check_list.h
smatch_data/kernel.balanced_funcs [deleted file]