linux_dsm_epyc7002/tools/lib/lockdep/uinclude
Ben Hutchings b016d870ca tools/lib/lockdep: Fix 'set but not used' warnings
liblockdep defines trivial macros for working with interrupt flags, as
interrupts are never disabled in userland.  This results in warnings
from gcc when -Wunused-but-set-variable is enabled, and it is enabled
by -Wall.  Fix this by evaluating the flags parameter and casting it to
void.

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
Link: http://lkml.kernel.org/r/20170525130005.5947-7-alexander.levin@verizon.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2017-06-05 09:28:06 +02:00
..
asm tools/liblockdep: Fix include of asm/hash.h 2014-02-26 21:21:53 -05:00
linux tools/lib/lockdep: Fix 'set but not used' warnings 2017-06-05 09:28:06 +02:00
trace/events liblockdep: Wrap kernel/locking/lockdep.c to allow usage from userspace 2013-11-27 11:55:21 +01:00