liblockdep: Fix 'defined but not used' warning for init_utsname()
authorBen Hutchings <ben@decadent.org.uk>
Tue, 14 Jun 2016 20:32:11 +0000 (21:32 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 28 Sep 2017 17:27:56 +0000 (18:27 +0100)
commit4a9dc55aeeaf308b03d4f8b5555b3cb052b344d6
tree4a6277c89092550f5e47833556add38a6696b377
parente0ff7f389d25216db8b98e541ae3d638cd8d46c7
liblockdep: Fix 'defined but not used' warning for init_utsname()

We define init_utsname() as static but not inline, resulting
in a warning for every source file that includes lockdep.h but
doesn't call it.

Since it is only used by lockdep.c, define it in there.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name liblockdep-fix-defined-but-not-used-warning-for-init.patch
tools/lib/lockdep/lockdep.c
tools/lib/lockdep/uinclude/linux/lockdep.h