mutex: drop "inline" from mutex_lock() inside kernel/mutex.c
authorH. Peter Anvin <hpa@linux.intel.com>
Thu, 2 Apr 2009 00:21:56 +0000 (17:21 -0700)
committerIngo Molnar <mingo@elte.hu>
Mon, 6 Apr 2009 07:30:27 +0000 (09:30 +0200)
commitb09d2501ed3d294619cbfbcf828ad39324d0e548
tree96878faeb21e84933cd52e446ac121887e9051fe
parent9ab772cd535c4b256a577eae516f9c7462346b2d
mutex: drop "inline" from mutex_lock() inside kernel/mutex.c

Impact: build fix

mutex_lock() is was defined inline in kernel/mutex.c, but wasn't
declared so not in <linux/mutex.h>.  This didn't cause a problem until
checkin 3a2d367d9aabac486ac4444c6c7ec7a1dab16267 added the
atomic_dec_and_mutex_lock() inline in between declaration and
definion.

This broke building with CONFIG_ALLOW_WARNINGS=n, e.g. make
allnoconfig.

Either from the source code nor the allnoconfig binary output I cannot
find any internal references to mutex_lock() in kernel/mutex.c, so
presumably this "inline" is now-useless legacy.

Cc: Eric Paris <eparis@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Orig-LKML-Reference: <tip-3a2d367d9aabac486ac4444c6c7ec7a1dab16267@git.kernel.org>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
kernel/mutex.c