Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2003-10-17 19:54:59 +1000
committerAnton Blanchard <anton@samba.org>2003-10-17 19:54:59 +1000
commitd810953c6e328292e066bb085b5c7b94f1595c5b (patch)
tree355c3bcd9b7241e53c7879ce7eb71941a4b180b1
parentc83c069b35e22b37f84105ea9f443658d42cb4a2 (diff)
ppc64: arguments to mlockall and msync dont need sign extending
-rw-r--r--arch/ppc64/kernel/misc.S4
-rw-r--r--arch/ppc64/kernel/sys_ppc32.c26
2 files changed, 2 insertions, 28 deletions
diff --git a/arch/ppc64/kernel/misc.S b/arch/ppc64/kernel/misc.S
index 7fe01d1e82a0..a39ff1d9cca7 100644
--- a/arch/ppc64/kernel/misc.S
+++ b/arch/ppc64/kernel/misc.S
@@ -742,7 +742,7 @@ _GLOBAL(sys_call_table32)
.llong .sys32_getdents
.llong .ppc32_select
.llong .sys_flock
- .llong .sys32_msync
+ .llong .sys_msync
.llong .sys32_readv /* 145 */
.llong .sys32_writev
.llong .sys32_getsid
@@ -750,7 +750,7 @@ _GLOBAL(sys_call_table32)
.llong .sys32_sysctl
.llong .sys_mlock /* 150 */
.llong .sys_munlock
- .llong .sys32_mlockall
+ .llong .sys_mlockall
.llong .sys_munlockall
.llong .sys32_sched_setparam
.llong .sys32_sched_getparam /* 155 */
diff --git a/arch/ppc64/kernel/sys_ppc32.c b/arch/ppc64/kernel/sys_ppc32.c
index dfd22649314e..167ff5158160 100644
--- a/arch/ppc64/kernel/sys_ppc32.c
+++ b/arch/ppc64/kernel/sys_ppc32.c
@@ -2340,32 +2340,6 @@ asmlinkage long sys32_mkdir(const char * pathname, u32 mode)
return sys_mkdir(pathname, (int)mode);
}
-
-extern asmlinkage long sys_mlockall(int flags);
-
-/* Note: it is necessary to treat flags as an unsigned int,
- * with the corresponding cast to a signed int to insure that the
- * proper conversion (sign extension) between the register representation of a signed int (msr in 32-bit mode)
- * and the register representation of a signed int (msr in 64-bit mode) is performed.
- */
-asmlinkage long sys32_mlockall(u32 flags)
-{
- return sys_mlockall((int)flags);
-}
-
-
-extern asmlinkage long sys_msync(unsigned long start, size_t len, int flags);
-
-/* Note: it is necessary to treat flags as an unsigned int,
- * with the corresponding cast to a signed int to insure that the
- * proper conversion (sign extension) between the register representation of a signed int (msr in 32-bit mode)
- * and the register representation of a signed int (msr in 64-bit mode) is performed.
- */
-asmlinkage long sys32_msync(unsigned long start, size_t len, u32 flags)
-{
- return sys_msync(start, len, (int)flags);
-}
-
extern asmlinkage long sys_nice(int increment);
long sys32_nice(u32 increment)