]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - kernel/lockdep_internals.h
lockdep: Provide off case for redundant_hardirqs_on increment
authorFrederic Weisbecker <fweisbec@gmail.com>
Tue, 4 May 2010 02:47:25 +0000 (04:47 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Tue, 4 May 2010 03:37:28 +0000 (05:37 +0200)
commitba697f40dbb704956a4cf67a7845b538015a01ea
tree9ab6f1391bd45c52145d04b588e31c2f1abe0c53
parent0e417fe1f247bb3ac056ee04604332005c334fac
lockdep: Provide off case for redundant_hardirqs_on increment

We forgot to provide a !CONFIG_DEBUG_LOCKDEP case for the
redundant_hardirqs_on stat handling.

Manage that in the headers with a new __debug_atomic_inc() helper.

Fixes:

kernel/lockdep.c:2306: error: 'lockdep_stats' undeclared (first use in this function)
kernel/lockdep.c:2306: error: (Each undeclared identifier is reported only once
kernel/lockdep.c:2306: error: for each function it appears in.)

Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
kernel/lockdep.c
kernel/lockdep_internals.h