check_locking.c: Fix annoying invisible read_unlock
commit4bec9016647ab6b82981e41544c4f2f4ce943d7f
authorOleg Drokin <green@linuxhacker.ru>
Mon, 27 Apr 2015 07:47:15 +0000 (27 03:47 -0400)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 27 Apr 2015 08:05:59 +0000 (27 11:05 +0300)
tree5487a7ff778063e3c17468212df764f731aa8653
parent06a90175b3e8f9fdc6655de16eb0c15e9a052f2a
check_locking.c: Fix annoying invisible read_unlock

Apparently in certain kernel configs read_unlock is defined as
_raw_read_unlock that is further defined as __raw_read_unlock.
But read_lock is only defined as _raw_read_lock.

Teach check_locking.c about the __ versions of the raw_read_lock
functions

This fixes spurious errors like:
kernel/exec_domain.c:74 lookup_exec_domain() error: double lock 'read_lock:&exec_domains_lock'

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
check_locking.c