Commit 3c3080ab authored by Anton Blanchard's avatar Anton Blanchard

ppc64: 32 bit mknod and chmod need no sign extension

parent d203ae95
...@@ -518,8 +518,8 @@ _GLOBAL(sys_call_table32) ...@@ -518,8 +518,8 @@ _GLOBAL(sys_call_table32)
.llong .sys32_execve .llong .sys32_execve
.llong .sys_chdir .llong .sys_chdir
.llong .sys32_time .llong .sys32_time
.llong .sys32_mknod .llong .sys_mknod
.llong .sys32_chmod /* 15 */ .llong .sys_chmod /* 15 */
.llong .sys_lchown .llong .sys_lchown
.llong .sys_ni_syscall /* old break syscall holder */ .llong .sys_ni_syscall /* old break syscall holder */
.llong .sys32_stat .llong .sys32_stat
......
...@@ -19,8 +19,6 @@ ...@@ -19,8 +19,6 @@
#include <asm/errno.h> #include <asm/errno.h>
#include <asm/processor.h> #include <asm/processor.h>
/* NOTE: call as jump breaks return stack, we have to avoid that */
.text .text
_GLOBAL(sys32_mmap) _GLOBAL(sys32_mmap)
...@@ -32,14 +30,6 @@ _GLOBAL(sys32_lseek) ...@@ -32,14 +30,6 @@ _GLOBAL(sys32_lseek)
extsw r4,r4 /* sign extend off_t offset parm */ extsw r4,r4 /* sign extend off_t offset parm */
b .sys_lseek b .sys_lseek
_GLOBAL(sys32_chmod)
/* Ken Aaker.. hmmm maybe I don't need to do anything here */
b .sys_chmod
_GLOBAL(sys32_mknod)
/* Ken Aaker.. hmmm maybe I don't need to do anything here */
b .sys_mknod
_GLOBAL(sys32_sendto) _GLOBAL(sys32_sendto)
clrldi r7, r7, 32 /* struct sockaddr *addr parm */ clrldi r7, r7, 32 /* struct sockaddr *addr parm */
clrldi r8, r8, 32 /* int addr_len parm */ clrldi r8, r8, 32 /* int addr_len parm */
......
...@@ -453,17 +453,6 @@ asmlinkage long sys32_mount(char *dev_name, char *dir_name, char *type, unsigned ...@@ -453,17 +453,6 @@ asmlinkage long sys32_mount(char *dev_name, char *dir_name, char *type, unsigned
return err; return err;
} }
struct dqblk32 {
__u32 dqb_bhardlimit;
__u32 dqb_bsoftlimit;
__u32 dqb_curblocks;
__u32 dqb_ihardlimit;
__u32 dqb_isoftlimit;
__u32 dqb_curinodes;
__kernel_time_t32 dqb_btime;
__kernel_time_t32 dqb_itime;
};
/* readdir & getdents */ /* readdir & getdents */
#define NAME_OFFSET(de) ((int) ((de)->d_name - (char *) (de))) #define NAME_OFFSET(de) ((int) ((de)->d_name - (char *) (de)))
#define ROUND_UP(x) (((x)+sizeof(u32)-1) & ~(sizeof(u32)-1)) #define ROUND_UP(x) (((x)+sizeof(u32)-1) & ~(sizeof(u32)-1))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment