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: Fengguang Wu <[email protected]>
Signed-off-by: Davidlohr Bueso <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
mutex_set_owner(lock);
mspin_unlock(MLOCK(lock), &node);
- goto done;
+ preempt_enable();
+ return 0;
}
mspin_unlock(MLOCK(lock), &node);
}
spin_unlock_mutex(&lock->wait_lock, flags);
-done:
preempt_enable();
return 0;