tools/lib/lockdep: Fix 'defined but not used' warning for init_utsname()
authorBen Hutchings <ben@decadent.org.uk>
Thu, 25 May 2017 12:58:39 +0000 (12:58 +0000)
committerIngo Molnar <mingo@kernel.org>
Mon, 5 Jun 2017 07:28:06 +0000 (09:28 +0200)
commit1baa75406ecc2d77c9e6ecf45a707838a5bf7f29
tree7a12f9793c254b9b20513132f3ddbd5b773b2080
parentb016d870cadae31d7c5eb2eef794d2e733f6595c
tools/lib/lockdep: 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>
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-8-alexander.levin@verizon.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
tools/lib/lockdep/lockdep.c
tools/lib/lockdep/uinclude/linux/lockdep.h