diff options
-rw-r--r-- | fs/compat.c | 11 | ||||
-rw-r--r-- | include/linux/compat.h | 2 |
2 files changed, 5 insertions, 8 deletions
diff --git a/fs/compat.c b/fs/compat.c index 015e1e1f87c6..f9e2fe3794fa 100644 --- a/fs/compat.c +++ b/fs/compat.c | |||
@@ -1278,8 +1278,7 @@ compat_sys_vmsplice(int fd, const struct compat_iovec __user *iov32, | |||
1278 | * Exactly like fs/open.c:sys_open(), except that it doesn't set the | 1278 | * Exactly like fs/open.c:sys_open(), except that it doesn't set the |
1279 | * O_LARGEFILE flag. | 1279 | * O_LARGEFILE flag. |
1280 | */ | 1280 | */ |
1281 | asmlinkage long | 1281 | COMPAT_SYSCALL_DEFINE3(open, const char __user *, filename, int, flags, umode_t, mode) |
1282 | compat_sys_open(const char __user *filename, int flags, umode_t mode) | ||
1283 | { | 1282 | { |
1284 | return do_sys_open(AT_FDCWD, filename, flags, mode); | 1283 | return do_sys_open(AT_FDCWD, filename, flags, mode); |
1285 | } | 1284 | } |
@@ -1288,8 +1287,7 @@ compat_sys_open(const char __user *filename, int flags, umode_t mode) | |||
1288 | * Exactly like fs/open.c:sys_openat(), except that it doesn't set the | 1287 | * Exactly like fs/open.c:sys_openat(), except that it doesn't set the |
1289 | * O_LARGEFILE flag. | 1288 | * O_LARGEFILE flag. |
1290 | */ | 1289 | */ |
1291 | asmlinkage long | 1290 | COMPAT_SYSCALL_DEFINE4(openat, int, dfd, const char __user *, filename, int, flags, umode_t, mode) |
1292 | compat_sys_openat(unsigned int dfd, const char __user *filename, int flags, umode_t mode) | ||
1293 | { | 1291 | { |
1294 | return do_sys_open(dfd, filename, flags, mode); | 1292 | return do_sys_open(dfd, filename, flags, mode); |
1295 | } | 1293 | } |
@@ -1785,9 +1783,8 @@ asmlinkage long compat_sys_timerfd_gettime(int ufd, | |||
1785 | * Exactly like fs/open.c:sys_open_by_handle_at(), except that it | 1783 | * Exactly like fs/open.c:sys_open_by_handle_at(), except that it |
1786 | * doesn't set the O_LARGEFILE flag. | 1784 | * doesn't set the O_LARGEFILE flag. |
1787 | */ | 1785 | */ |
1788 | asmlinkage long | 1786 | COMPAT_SYSCALL_DEFINE3(open_by_handle_at, int, mountdirfd, |
1789 | compat_sys_open_by_handle_at(int mountdirfd, | 1787 | struct file_handle __user *, handle, int, flags) |
1790 | struct file_handle __user *handle, int flags) | ||
1791 | { | 1788 | { |
1792 | return do_handle_open(mountdirfd, handle, flags); | 1789 | return do_handle_open(mountdirfd, handle, flags); |
1793 | } | 1790 | } |
diff --git a/include/linux/compat.h b/include/linux/compat.h index e20b8b404ae9..8de903587fb9 100644 --- a/include/linux/compat.h +++ b/include/linux/compat.h | |||
@@ -534,7 +534,7 @@ asmlinkage long compat_sys_vmsplice(int fd, const struct compat_iovec __user *, | |||
534 | unsigned int nr_segs, unsigned int flags); | 534 | unsigned int nr_segs, unsigned int flags); |
535 | asmlinkage long compat_sys_open(const char __user *filename, int flags, | 535 | asmlinkage long compat_sys_open(const char __user *filename, int flags, |
536 | umode_t mode); | 536 | umode_t mode); |
537 | asmlinkage long compat_sys_openat(unsigned int dfd, const char __user *filename, | 537 | asmlinkage long compat_sys_openat(int dfd, const char __user *filename, |
538 | int flags, umode_t mode); | 538 | int flags, umode_t mode); |
539 | asmlinkage long compat_sys_open_by_handle_at(int mountdirfd, | 539 | asmlinkage long compat_sys_open_by_handle_at(int mountdirfd, |
540 | struct file_handle __user *handle, | 540 | struct file_handle __user *handle, |