liblockdep: Fix 'unused value' warnings
authorBen Hutchings <ben@decadent.org.uk>
Tue, 14 Jun 2016 19:13:23 +0000 (20:13 +0100)
committerAurelien Jarno <aurel32@debian.org>
Fri, 2 Mar 2018 07:52:22 +0000 (07:52 +0000)
commit70b4426454daa4a75c0108744ac32353946bf8bf
tree17b22be09f126e3d1852e9c471a9b88304807bfb
parentb357cef34b8afd8ff4a79d81d620fc5e0b256275
liblockdep: 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>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name liblockdep-fix-unused-value-warnings.patch
tools/lib/lockdep/uinclude/linux/debug_locks.h
tools/lib/lockdep/uinclude/linux/kernel.h
tools/lib/lockdep/uinclude/linux/lockdep.h