Skip to contentSkip to conversation

MIPS: APRP: Fix breakage due to new wait_event interface.

PATCH In review Steven J. Hill 2 participants 2 messages Jan 17, 2014 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: APRP: Fix breakage due to new wait_event interface.

From: "Steven J. Hill" <[email protected]>

Commit 35a2af94c7ce7130ca292c68b1d27fcfdb648f6b changed the __wait_event*() interfaces. Fix the RTLX open() function to use the new interface.

---
 arch/mips/kernel/rtlx.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
arch/mips/kernel/rtlx.c +2 -3
index 4658350..31b1b76 100644
@@ -108,10 +108,9 @@ int rtlx_open(int index, int can_sleep)
 		p = vpe_get_shared(aprp_cpu_index());
 		if (p == NULL) {
 			if (can_sleep) {
-				__wait_event_interruptible(
+				ret = __wait_event_interruptible(
 					channel_wqs[index].lx_queue,
-					(p = vpe_get_shared(aprp_cpu_index())),
-					ret);
+					(p = vpe_get_shared(aprp_cpu_index())));
 				if (ret)
 					goto out_fail;
 			} else {
Signature · 1 line
1.7.10.4
#1 lore raw

Hello.

Quoted 7 lines · Steven J. Hill

From: "Steven J. Hill" <[email protected]>

Commit 35a2af94c7ce7130ca292c68b1d27fcfdb648f6b changed the __wait_event*() interfaces. Fix the RTLX open() function to use the new interface.

Deng-Cheng Zhu from the same firm posted such patch already. You should
coordinate better. :-)

WBR, Sergei