linux/tools/lib/lockdep
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
..
include/liblockdep locking/lockdep: Eliminate lockdep_init() 2016-02-09 12:03:25 +01:00
tests tools/lib/lockdep: Add tests for AA and ABBA locking 2016-02-29 10:29:33 +01:00
uinclude tools/lib/lockdep: Fix 'set but not used' warnings 2017-06-05 09:28:06 +02:00
.gitignore tools/liblockdep: ignore generated .so file 2015-01-29 21:55:19 -05:00
Build tools lib lockdep: Use tools build framework 2015-02-12 17:56:01 -03:00
common.c locking/lockdep: Eliminate lockdep_init() 2016-02-09 12:03:25 +01:00
lockdep liblockdep: Add the 'lockdep' user-space utility 2013-11-27 11:56:25 +01:00
lockdep_internals.h liblockdep: Wrap kernel/locking/lockdep.c to allow usage from userspace 2013-11-27 11:55:21 +01:00
lockdep_states.h liblockdep: Wrap kernel/locking/lockdep.c to allow usage from userspace 2013-11-27 11:55:21 +01:00
lockdep.c tools/lib/lockdep: Fix undefined symbol prandom_u32 2017-06-05 09:28:02 +02:00
Makefile tools/lib/lockdep: Enable -Wall by default 2017-06-05 09:28:04 +02:00
preload.c locking/lockdep: Eliminate lockdep_init() 2016-02-09 12:03:25 +01:00
rbtree.c liblockdep: Wrap kernel/locking/lockdep.c to allow usage from userspace 2013-11-27 11:55:21 +01:00
run_tests.sh tools/lib/lockdep: Fix unsupported 'basename -s' in run_tests.sh 2016-03-30 12:45:56 +02:00