]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
lockdep: Add novalidate class for dev->mutex conversion
authorPeter Zijlstra <peterz@infradead.org>
Fri, 19 Mar 2010 00:37:42 +0000 (01:37 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 21 May 2010 16:37:30 +0000 (09:37 -0700)
commit1704f47b50b5d9e1b825e43e1baaf2c5897baf03
tree60617ff867624f915f75a502f2207de5e586757a
parent3142788b7967ccfd2f1813ee9e11aeb1e1cf7de2
lockdep: Add novalidate class for dev->mutex conversion

The conversion of device->sem to device->mutex resulted in lockdep
warnings. Create a novalidate class for now until the driver folks
come up with separate classes. That way we have at least the basic
mutex debugging coverage.

Add a checkpatch error so the usage is reserved for device->mutex.

[ tglx: checkpatch and compile fix for LOCKDEP=n ]

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/core.c
include/linux/lockdep.h
kernel/lockdep.c
scripts/checkpatch.pl