Commit 2b488397 authored by Davidlohr Bueso's avatar Davidlohr Bueso Committed by Ingo Molnar

mutex: Avoid label warning when !CONFIG_MUTEX_SPIN_ON_OWNER

Fengguang reported the following warning when optimistic
spinning is disabled (ie: make allnoconfig):

   kernel/mutex.c:599:1: warning: label 'done' defined but not used

Remove the 'done' label altogether.
Reported-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarDavidlohr Bueso <davidlohr.bueso@hp.com>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent ec83f425
...@@ -489,7 +489,8 @@ __mutex_lock_common(struct mutex *lock, long state, unsigned int subclass, ...@@ -489,7 +489,8 @@ __mutex_lock_common(struct mutex *lock, long state, unsigned int subclass,
mutex_set_owner(lock); mutex_set_owner(lock);
mspin_unlock(MLOCK(lock), &node); mspin_unlock(MLOCK(lock), &node);
goto done; preempt_enable();
return 0;
} }
mspin_unlock(MLOCK(lock), &node); mspin_unlock(MLOCK(lock), &node);
...@@ -596,7 +597,6 @@ __mutex_lock_common(struct mutex *lock, long state, unsigned int subclass, ...@@ -596,7 +597,6 @@ __mutex_lock_common(struct mutex *lock, long state, unsigned int subclass,
} }
spin_unlock_mutex(&lock->wait_lock, flags); spin_unlock_mutex(&lock->wait_lock, flags);
done:
preempt_enable(); preempt_enable();
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment