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)
committerAurelien Jarno <aurel32@debian.org>
Fri, 2 Mar 2018 07:52:22 +0000 (07:52 +0000)
commitb7669f135dbef853ed39a139828b0c993c58be54
tree389813458c3d160638f09c823dc644aa6fccbd78
parent7e56c55fd8c6506541c9bc564b90653cbd69bb83
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