summaryrefslogtreecommitdiff
path: root/include/linux/syscalls.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-07-22 12:14:19 +0300
committerChristoph Hellwig <hch@lst.de>2020-07-31 09:17:53 +0300
commit812931d693da58cc24d2bb8dec01c2b4a7f4668f (patch)
tree2e95f34172c407d94ca5a097eae30852c01551cc /include/linux/syscalls.h
parenteb9d7d390e51108b4c6a9a7993ed9be92548c8f7 (diff)
downloadlinux-812931d693da58cc24d2bb8dec01c2b4a7f4668f.tar.xz
init: add an init_link helper
Add a simple helper to link with a kernel space file name and switch the early init code over to it. Remove the now unused ksys_link. Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include/linux/syscalls.h')
-rw-r--r--include/linux/syscalls.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h
index a2779638e414..4b18b91ce465 100644
--- a/include/linux/syscalls.h
+++ b/include/linux/syscalls.h
@@ -1295,15 +1295,6 @@ static inline long ksys_mknod(const char __user *filename, umode_t mode,
return do_mknodat(AT_FDCWD, filename, mode, dev);
}
-extern int do_linkat(int olddfd, const char __user *oldname, int newdfd,
- const char __user *newname, int flags);
-
-static inline long ksys_link(const char __user *oldname,
- const char __user *newname)
-{
- return do_linkat(AT_FDCWD, oldname, AT_FDCWD, newname, 0);
-}
-
extern int do_fchownat(int dfd, const char __user *filename, uid_t user,
gid_t group, int flag);