linux-mips
[Top] [All Lists]

[PATCH] MIPS: Use compat version for n32 sys_ppoll.

To: linux-mips@linux-mips.org, ralf@linux-mips.org
Subject: [PATCH] MIPS: Use compat version for n32 sys_ppoll.
From: David Daney <ddaney@caviumnetworks.com>
Date: Mon, 10 May 2010 17:11:54 -0700
Cc: Chandrakala Chavva <cchavva@caviumnetworks.com>, David Daney <ddaney@caviumnetworks.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
From: Chandrakala Chavva <cchavva@caviumnetworks.com>

The sys_ppoll() takes struct 'struct timespec'. This is different
for n32 and n64 abi. Use the compat version to do the proper conversions.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
---
 arch/mips/kernel/scall64-n32.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/mips/kernel/scall64-n32.S b/arch/mips/kernel/scall64-n32.S
index 6ebc079..10f3343 100644
--- a/arch/mips/kernel/scall64-n32.S
+++ b/arch/mips/kernel/scall64-n32.S
@@ -385,7 +385,7 @@ EXPORT(sysn32_call_table)
        PTR     sys_fchmodat
        PTR     sys_faccessat
        PTR     compat_sys_pselect6
-       PTR     sys_ppoll                       /* 6265 */
+       PTR     compat_sys_ppoll                /* 6265 */
        PTR     sys_unshare
        PTR     sys_splice
        PTR     sys_sync_file_range
-- 
1.6.6.1


<Prev in Thread] Current Thread [Next in Thread>