From: Ingo Molnar Date: Mon, 3 Jul 2006 07:24:33 +0000 (-0700) Subject: [PATCH] lockdep: mutex section binutils workaround X-Git-Tag: v2.6.18-rc1~106 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9cebb5526833059f327d237a032422c762378b2a;p=pandora-kernel.git [PATCH] lockdep: mutex section binutils workaround Work around weird section nesting build bug causing smp-alternatives failures under certain circumstances. Signed-off-by: Ingo Molnar Signed-off-by: Arjan van de Ven Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/mutex.c b/kernel/mutex.c index 3aad0b7992f4..43a50c18701a 100644 --- a/kernel/mutex.c +++ b/kernel/mutex.c @@ -313,7 +313,7 @@ static inline int __mutex_trylock_slowpath(atomic_t *lock_count) * This function must not be used in interrupt context. The * mutex must be released by the same task that acquired it. */ -int fastcall mutex_trylock(struct mutex *lock) +int fastcall __sched mutex_trylock(struct mutex *lock) { return __mutex_fastpath_trylock(&lock->count, __mutex_trylock_slowpath);