Skip to content

Commit c856863

Browse files
committed
Merge branch 'misc.compat' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull misc compat stuff updates from Al Viro: "This part is basically untangling various compat stuff. Compat syscalls moved to their native counterparts, getting rid of quite a bit of double-copying and/or set_fs() uses. A lot of field-by-field copyin/copyout killed off. - kernel/compat.c is much closer to containing just the copyin/copyout of compat structs. Not all compat syscalls are gone from it yet, but it's getting there. - ipc/compat_mq.c killed off completely. - block/compat_ioctl.c cleaned up; floppy compat ioctls moved to drivers/block/floppy.c where they belong. Yes, there are several drivers that implement some of the same ioctls. Some are m68k and one is 32bit-only pmac. drivers/block/floppy.c is the only one in that bunch that can be built on biarch" * 'misc.compat' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: mqueue: move compat syscalls to native ones usbdevfs: get rid of field-by-field copyin compat_hdio_ioctl: get rid of set_fs() take floppy compat ioctls to sodding floppy.c ipmi: get rid of field-by-field __get_user() ipmi: get COMPAT_IPMICTL_RECEIVE_MSG in sync with the native one rt_sigtimedwait(): move compat to native select: switch compat_{get,put}_fd_set() to compat_{get,put}_bitmap() put_compat_rusage(): switch to copy_to_user() sigpending(): move compat to native getrlimit()/setrlimit(): move compat to native times(2): move compat to native compat_{get,put}_bitmap(): use unsafe_{get,put}_user() fb_get_fscreeninfo(): don't bother with do_fb_ioctl() do_sigaltstack(): lift copying to/from userland into callers take compat_sys_old_getrlimit() to native syscall trim __ARCH_WANT_SYS_OLD_GETRLIMIT
2 parents 771d3fe + 0d06060 commit c856863

23 files changed

Lines changed: 1019 additions & 1137 deletions

File tree

‎arch/alpha/include/asm/unistd.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#define __ARCH_WANT_SYS_GETHOSTNAME
1111
#define __ARCH_WANT_SYS_FADVISE64
1212
#define __ARCH_WANT_SYS_GETPGRP
13-
#define __ARCH_WANT_SYS_OLD_GETRLIMIT
1413
#define __ARCH_WANT_SYS_OLDUMOUNT
1514
#define __ARCH_WANT_SYS_SIGPENDING
1615
#define __ARCH_WANT_SYS_FORK

‎arch/m32r/include/asm/unistd.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#define __ARCH_WANT_SYS_FADVISE64
1919
#define __ARCH_WANT_SYS_GETPGRP
2020
#define __ARCH_WANT_SYS_LLSEEK
21-
#define __ARCH_WANT_SYS_OLD_GETRLIMIT /*will be unused*/
2221
#define __ARCH_WANT_SYS_OLDUMOUNT
2322
#define __ARCH_WANT_SYS_CLONE
2423
#define __ARCH_WANT_SYS_FORK

‎arch/mips/include/asm/unistd.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
#define __ARCH_WANT_SYS_GETPGRP
3636
#define __ARCH_WANT_SYS_LLSEEK
3737
#define __ARCH_WANT_SYS_NICE
38-
#define __ARCH_WANT_SYS_OLD_GETRLIMIT
3938
#define __ARCH_WANT_SYS_OLD_UNAME
4039
#define __ARCH_WANT_SYS_OLDUMOUNT
4140
#define __ARCH_WANT_SYS_SIGPENDING

‎arch/parisc/include/asm/unistd.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5) \
156156
#define __ARCH_WANT_SYS_GETPGRP
157157
#define __ARCH_WANT_SYS_LLSEEK
158158
#define __ARCH_WANT_SYS_NICE
159-
#define __ARCH_WANT_SYS_OLD_GETRLIMIT
160159
#define __ARCH_WANT_SYS_OLDUMOUNT
161160
#define __ARCH_WANT_SYS_SIGPENDING
162161
#define __ARCH_WANT_SYS_SIGPROCMASK

‎arch/powerpc/include/asm/compat.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ struct compat_statfs {
109109
int f_spare[4];
110110
};
111111

112-
#define COMPAT_RLIM_OLD_INFINITY 0x7fffffff
113112
#define COMPAT_RLIM_INFINITY 0xffffffff
114113

115114
typedef u32 compat_old_sigset_t;

‎arch/s390/include/asm/compat.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ struct compat_statfs64 {
178178
u32 f_spare[4];
179179
};
180180

181-
#define COMPAT_RLIM_OLD_INFINITY 0x7fffffff
182181
#define COMPAT_RLIM_INFINITY 0xffffffff
183182

184183
typedef u32 compat_old_sigset_t; /* at least 32 bits */

‎arch/x86/include/asm/compat.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ struct compat_statfs {
116116
int f_spare[4];
117117
};
118118

119-
#define COMPAT_RLIM_OLD_INFINITY 0x7fffffff
120119
#define COMPAT_RLIM_INFINITY 0xffffffff
121120

122121
typedef u32 compat_old_sigset_t; /* at least 32 bits */

0 commit comments

Comments
 (0)