From: Thiemo Seufer <ths@networkno.de>
Date: Sun, 28 May 2006 14:02:53 +0000 (+0100)
Subject: [MIPS] open() forces O_LARGEFILE for o32 on 64bit kernels
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7155262e180d3b50fdea0f58f3329d9ae81ef80b;p=linux.git

[MIPS] open() forces O_LARGEFILE for o32 on 64bit kernels

open() always sets the O_LARGEFILE flag for the o32 ABI implementation
of a 64bit kernel. The appended patch fixes it.

Signed-off-by: Thiemo Seufer <ths@networkno.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
---

diff --git a/arch/mips/kernel/scall64-o32.S b/arch/mips/kernel/scall64-o32.S
index b53a9207f530a..8efb23a841317 100644
--- a/arch/mips/kernel/scall64-o32.S
+++ b/arch/mips/kernel/scall64-o32.S
@@ -209,7 +209,7 @@ sys_call_table:
 	PTR	sys_fork
 	PTR	sys_read
 	PTR	sys_write
-	PTR	sys_open			/* 4005 */
+	PTR	compat_sys_open			/* 4005 */
 	PTR	sys_close
 	PTR	sys_waitpid
 	PTR	sys_creat