浏览代码

[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 <mingo@elte.hu>
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Ingo Molnar 19 年之前
父节点
当前提交
9cebb55268
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      kernel/mutex.c

+ 1 - 1
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
  * This function must not be used in interrupt context. The
  * mutex must be released by the same task that acquired it.
  * 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,
 	return __mutex_fastpath_trylock(&lock->count,
 					__mutex_trylock_slowpath);
 					__mutex_trylock_slowpath);