]> www.infradead.org Git - users/jedix/linux-maple.git/commit
locking/lockdep: Remove hard coded array size dependency
authorGeorge Beshers <gbeshers@sgi.com>
Thu, 18 Jun 2015 15:25:13 +0000 (10:25 -0500)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 27 Feb 2017 01:50:13 +0000 (17:50 -0800)
commit68c8856df99eb0e3d232bf5e3800f557156917e1
tree227966a46002ec1c3a809318e46eec5a87dfaa0d
parentaeb76e45d8809efc0c273a5aa6edf481256893c6
locking/lockdep: Remove hard coded array size dependency

Orabug: 25477822

An apparent oversight left a hardcoded '4' in place when
LOCKSTAT_POINTS was introduced.

The contention_point[] and contending_point[] arrays in the
structs lock_class and lock_class_stats need to be the same
size for the loops in lock_stats() to be correct.

This patch allows LOCKSTAT_POINTS to be changed without
affecting the correctness of the code.

Signed-off-by: George Beshers <gbeshers@sgi.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
(cherry picked from commit 68722101ec3a0e179408a13708dd020e04f54aab)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
include/linux/lockdep.h