Skip to content

Commit b25ba7c

Browse files
author
Christoph Hellwig
committed
fs: remove ksys_fchmod
Fold it into the only remaining caller. Signed-off-by: Christoph Hellwig <[email protected]> Acked-by: Linus Torvalds <[email protected]>
1 parent bc1cd99 commit b25ba7c

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

fs/open.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ int vfs_fchmod(struct file *file, umode_t mode)
608608
return chmod_common(&file->f_path, mode);
609609
}
610610

611-
int ksys_fchmod(unsigned int fd, umode_t mode)
611+
SYSCALL_DEFINE2(fchmod, unsigned int, fd, umode_t, mode)
612612
{
613613
struct fd f = fdget(fd);
614614
int err = -EBADF;
@@ -620,11 +620,6 @@ int ksys_fchmod(unsigned int fd, umode_t mode)
620620
return err;
621621
}
622622

623-
SYSCALL_DEFINE2(fchmod, unsigned int, fd, umode_t, mode)
624-
{
625-
return ksys_fchmod(fd, mode);
626-
}
627-
628623
int do_fchmodat(int dfd, const char __user *filename, umode_t mode)
629624
{
630625
struct path path;

include/linux/syscalls.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,6 @@ int ksys_umount(char __user *name, int flags);
12401240
int ksys_chroot(const char __user *filename);
12411241
ssize_t ksys_write(unsigned int fd, const char __user *buf, size_t count);
12421242
int ksys_chdir(const char __user *filename);
1243-
int ksys_fchmod(unsigned int fd, umode_t mode);
12441243
int ksys_fchown(unsigned int fd, uid_t user, gid_t group);
12451244
int ksys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg);
12461245
ssize_t ksys_read(unsigned int fd, char __user *buf, size_t count);

0 commit comments

Comments
 (0)