[PATCH] backports: add missing returns on ww_mutex backpots

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Luis R. Rodriguez" <mcgrof@xxxxxxxxxxxxxxxx>

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 <mcgrof@xxxxxxxxxxxxxxxx>
---
 backport/compat/kernel/ww_mutex.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/backport/compat/kernel/ww_mutex.c b/backport/compat/kernel/ww_mutex.c
index 257c2a4..204ac8f 100644
--- a/backport/compat/kernel/ww_mutex.c
+++ b/backport/compat/kernel/ww_mutex.c
@@ -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)
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux