diff options
-rw-r--r-- | fs/namei.c | 4 | ||||
-rw-r--r-- | include/linux/syscalls.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/fs/namei.c b/fs/namei.c index 5008f01787f5..f6b3c73e862c 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -2489,7 +2489,7 @@ static int may_mknod(mode_t mode) | |||
2489 | } | 2489 | } |
2490 | } | 2490 | } |
2491 | 2491 | ||
2492 | SYSCALL_DEFINE4(mknodat, int, dfd, const char __user *, filename, int, mode, | 2492 | SYSCALL_DEFINE4(mknodat, int, dfd, const char __user *, filename, umode_t, mode, |
2493 | unsigned, dev) | 2493 | unsigned, dev) |
2494 | { | 2494 | { |
2495 | struct dentry *dentry; | 2495 | struct dentry *dentry; |
@@ -2536,7 +2536,7 @@ out_dput: | |||
2536 | return error; | 2536 | return error; |
2537 | } | 2537 | } |
2538 | 2538 | ||
2539 | SYSCALL_DEFINE3(mknod, const char __user *, filename, int, mode, unsigned, dev) | 2539 | SYSCALL_DEFINE3(mknod, const char __user *, filename, umode_t, mode, unsigned, dev) |
2540 | { | 2540 | { |
2541 | return sys_mknodat(AT_FDCWD, filename, mode, dev); | 2541 | return sys_mknodat(AT_FDCWD, filename, mode, dev); |
2542 | } | 2542 | } |
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index 86a24b1166d1..b3c16d8a6383 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h | |||
@@ -475,7 +475,7 @@ asmlinkage long sys_mincore(unsigned long start, size_t len, | |||
475 | asmlinkage long sys_pivot_root(const char __user *new_root, | 475 | asmlinkage long sys_pivot_root(const char __user *new_root, |
476 | const char __user *put_old); | 476 | const char __user *put_old); |
477 | asmlinkage long sys_chroot(const char __user *filename); | 477 | asmlinkage long sys_chroot(const char __user *filename); |
478 | asmlinkage long sys_mknod(const char __user *filename, int mode, | 478 | asmlinkage long sys_mknod(const char __user *filename, umode_t mode, |
479 | unsigned dev); | 479 | unsigned dev); |
480 | asmlinkage long sys_link(const char __user *oldname, | 480 | asmlinkage long sys_link(const char __user *oldname, |
481 | const char __user *newname); | 481 | const char __user *newname); |
@@ -755,7 +755,7 @@ asmlinkage long sys_spu_run(int fd, __u32 __user *unpc, | |||
755 | asmlinkage long sys_spu_create(const char __user *name, | 755 | asmlinkage long sys_spu_create(const char __user *name, |
756 | unsigned int flags, mode_t mode, int fd); | 756 | unsigned int flags, mode_t mode, int fd); |
757 | 757 | ||
758 | asmlinkage long sys_mknodat(int dfd, const char __user * filename, int mode, | 758 | asmlinkage long sys_mknodat(int dfd, const char __user * filename, umode_t mode, |
759 | unsigned dev); | 759 | unsigned dev); |
760 | asmlinkage long sys_mkdirat(int dfd, const char __user * pathname, int mode); | 760 | asmlinkage long sys_mkdirat(int dfd, const char __user * pathname, int mode); |
761 | asmlinkage long sys_unlinkat(int dfd, const char __user * pathname, int flag); | 761 | asmlinkage long sys_unlinkat(int dfd, const char __user * pathname, int flag); |