diff options
Diffstat (limited to 'kernel/locking/mutex.c')
-rw-r--r-- | kernel/locking/mutex.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/locking/mutex.c b/kernel/locking/mutex.c index 14fe72cc8ce7..bc73d33c6760 100644 --- a/kernel/locking/mutex.c +++ b/kernel/locking/mutex.c | |||
@@ -75,8 +75,7 @@ EXPORT_SYMBOL(__mutex_init); | |||
75 | * We also put the fastpath first in the kernel image, to make sure the | 75 | * We also put the fastpath first in the kernel image, to make sure the |
76 | * branch is predicted by the CPU as default-untaken. | 76 | * branch is predicted by the CPU as default-untaken. |
77 | */ | 77 | */ |
78 | static __used noinline void __sched | 78 | __visible void __sched __mutex_lock_slowpath(atomic_t *lock_count); |
79 | __mutex_lock_slowpath(atomic_t *lock_count); | ||
80 | 79 | ||
81 | /** | 80 | /** |
82 | * mutex_lock - acquire the mutex | 81 | * mutex_lock - acquire the mutex |
@@ -189,7 +188,8 @@ static inline int mutex_can_spin_on_owner(struct mutex *lock) | |||
189 | } | 188 | } |
190 | #endif | 189 | #endif |
191 | 190 | ||
192 | static __used noinline void __sched __mutex_unlock_slowpath(atomic_t *lock_count); | 191 | __visible __used noinline |
192 | void __sched __mutex_unlock_slowpath(atomic_t *lock_count); | ||
193 | 193 | ||
194 | /** | 194 | /** |
195 | * mutex_unlock - release the mutex | 195 | * mutex_unlock - release the mutex |
@@ -716,7 +716,7 @@ __mutex_unlock_common_slowpath(atomic_t *lock_count, int nested) | |||
716 | /* | 716 | /* |
717 | * Release the lock, slowpath: | 717 | * Release the lock, slowpath: |
718 | */ | 718 | */ |
719 | static __used noinline void | 719 | __visible void |
720 | __mutex_unlock_slowpath(atomic_t *lock_count) | 720 | __mutex_unlock_slowpath(atomic_t *lock_count) |
721 | { | 721 | { |
722 | __mutex_unlock_common_slowpath(lock_count, 1); | 722 | __mutex_unlock_common_slowpath(lock_count, 1); |
@@ -773,7 +773,7 @@ int __sched mutex_lock_killable(struct mutex *lock) | |||
773 | } | 773 | } |
774 | EXPORT_SYMBOL(mutex_lock_killable); | 774 | EXPORT_SYMBOL(mutex_lock_killable); |
775 | 775 | ||
776 | static __used noinline void __sched | 776 | __visible void __sched |
777 | __mutex_lock_slowpath(atomic_t *lock_count) | 777 | __mutex_lock_slowpath(atomic_t *lock_count) |
778 | { | 778 | { |
779 | struct mutex *lock = container_of(lock_count, struct mutex, count); | 779 | struct mutex *lock = container_of(lock_count, struct mutex, count); |