linux/tools/lib/lockdep
Ben Hutchings bb7ea2a9af tools/lib/lockdep: Fix 'unused value' warnings
liblockdep defines various macros that may expand to an expression
with no effect, while the in-kernel definition does have an effect.
This results in warnings from gcc when -Wunused-value is enabled, and
is is enabled by -Wall.  Fix this by introducing trivial functions,
as function return values are generally allowed to be ignored.

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-6-alexander.levin@verizon.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2017-06-05 09:28:05 +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 'unused value' warnings 2017-06-05 09:28:05 +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