backports: add missing returns on ww_mutex backpots
PATCH 1/1 backports: add missing returns on ww_mutex backpots
From: "Luis R. Rodriguez" <[email protected]>
Two returns were missing on the ww_mutex backport, add these. The enhancements are not supported on older kernels so just bail out early.
Signed-off-by Luis R. Rodriguez <[email protected]>
--- backport/compat/kernel/ww_mutex.c | 2 ++ 1 file changed, 2 insertions(+)
backport/compat/kernel/ww_mutex.c +2 -0
@@ -206,10 +206,12 @@ static void mspin_unlock(struct mspin_node **lock, struct mspin_node *node)static inline bool owner_running (struct mutex *lock,struct task_struct *owner) { +return false; }int mutex_spin_on_owner (struct mutex *lock,struct task_struct *owner) { +return 1 ; }static inline int mutex_can_spin_on_owner (struct mutex *lock)
Signature · 1 line
1.7.10.4