liblockdep: Fix 'set but not used' warnings
authorBen Hutchings <ben@decadent.org.uk>
Tue, 14 Jun 2016 19:13:24 +0000 (20:13 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 28 Sep 2017 17:27:56 +0000 (18:27 +0100)
commite0ff7f389d25216db8b98e541ae3d638cd8d46c7
tree4144b97deeddc3800b31c1e731e608da55c6e094
parenta1813bcf0cb74654e4751db323a1ada852b46fee
liblockdep: 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>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name liblockdep-fix-set-but-not-used-warnings.patch
tools/lib/lockdep/uinclude/linux/irqflags.h