tools/lib/lockdep: Define the ARRAY_SIZE() macro
authorBen Hutchings <ben@decadent.org.uk>
Thu, 25 May 2017 12:58:34 +0000 (12:58 +0000)
committerIngo Molnar <mingo@kernel.org>
Mon, 5 Jun 2017 07:28:04 +0000 (09:28 +0200)
commit108744c45fd8a51e763e976d9e5b2cc265d4a847
treee19dbc910e9e7dc7d9d69102d02fafc58a28a78c
parent98dcea0cfd04e083ac74137ceb9a632604740e2d
tools/lib/lockdep: Define the ARRAY_SIZE() macro

lockdep.c now uses ARRAY_SIZE().

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: a.p.zijlstra@chello.nl
Fixes: 75dd602a5198 ("lockdep: Fix lock_chain::base size")
Link: http://lkml.kernel.org/r/20170525130005.5947-4-alexander.levin@verizon.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
tools/lib/lockdep/uinclude/linux/kernel.h