mutex: __used is needed for function referenced only from inline asm
authorTörök Edwin <edwintorok@gmail.com>
Mon, 24 Nov 2008 08:17:42 +0000 (10:17 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 24 Nov 2008 09:00:28 +0000 (10:00 +0100)
commit7918baa555140989eeee1270f48533987d48fdba
tree553b1bbf141ab4c671e49bb81e14ae82b0f37b6f
parente25cf3db560e803292946ef23a30c69e341ce56f
mutex: __used is needed for function referenced only from inline asm

Impact: fix build failure on llvm-gcc-4.2

According to the gcc manual, the 'used' attribute should be applied to
functions referenced only from inline assembly.
This fixes a build failure with llvm-gcc-4.2, which deleted
__mutex_lock_slowpath, __mutex_unlock_slowpath.

Signed-off-by: Török Edwin <edwintorok@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/mutex.c