summaryrefslogtreecommitdiff
path: root/include/linux/syscalls.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-07-22 11:14:36 +0200
committerChristoph Hellwig <hch@lst.de>2020-07-31 08:17:53 +0200
commitcd3acb6a79349f346714ab3d26d203a0c6ca5ab0 (patch)
treeef54d5dfaceca217273e3f4a323c95573b2b681a /include/linux/syscalls.h
parent812931d693da58cc24d2bb8dec01c2b4a7f4668f (diff)
init: add an init_symlink helper
Add a simple helper to symlink with a kernel space file name and switch the early init code over to it. Remove the now unused ksys_symlink. 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 4b18b91ce465..7cdc0d749a04 100644
--- a/include/linux/syscalls.h
+++ b/include/linux/syscalls.h
@@ -1277,15 +1277,6 @@ static inline long ksys_mkdir(const char __user *pathname, umode_t mode)
return do_mkdirat(AT_FDCWD, pathname, mode);
}
-extern long do_symlinkat(const char __user *oldname, int newdfd,
- const char __user *newname);
-
-static inline long ksys_symlink(const char __user *oldname,
- const char __user *newname)
-{
- return do_symlinkat(oldname, AT_FDCWD, newname);
-}
-
extern long do_mknodat(int dfd, const char __user *filename, umode_t mode,
unsigned int dev);